Scaling list data-based image or video coding

ABSTRACT

According to the disclosure of the present document, scaling list data transferred from an adaptation parameter set (APS) can be signaled through a hierarchical structure, and restrictions are placed on the scaling list data transferred from the APS, whereby the amount of data to be signaled for video/image coding can be reduced, and easiness in implementation can be provided.

CROSS-REFERENCE TO RELATED APPLICATIONS

Pursuant to 35 U.S.C. § 119(e), this application is a continuation ofInternational Application PCT/KR2020/008953, with an internationalfiling date of Jul. 8, 2020, which claims the benefit of U.S.Provisional Patent Application No. 62/871,228, filed on Jul. 8, 2019,the contents of which are hereby incorporated by reference herein intheir entirety.

BACKGROUND OF THE DISCLOSURE Field of the Disclosure

The present technology relates to video or image coding. For example,the present technology relates to a scaling list data-based codingtechnology.

Related Art

The demands for high-resolution and high-quality images and video, suchas an ultra high definition (UHD) image and video of 4K or 8K or more,are recently increasing in various fields. As image and video databecome high resolution and high quality, the amount of information orthe number of bits that is relatively transmitted is increased comparedto the existing image and video data. Accordingly, if image data istransmitted using a medium, such as the existing wired or wirelesswideband line, or image and video data are stored using the existingstorage medium, transmission costs and storage costs are increased.

Furthermore, interests and demands for immersive media, such as virtualreality (VR), artificial reality (AR) content or a hologram, arerecently increasing. The broadcasting of an image and video having imagecharacteristics different from those of real images, such as gameimages, is increasing.

Accordingly, there is a need for a high-efficiency image and videocompression technology in order to effectively compress and transmit orstore and playback information of high-resolution and high-qualityimages and video having such various characteristics.

In addition, there is a discussion on an adaptive frequency weightingquantization technique in the scaling process in order to improvecompression efficiency and increase subjective/objective visual quality.In order to efficiently apply this technique, a method for signalingrelated information is needed.

SUMMARY

A technical aspect of the present disclosure is to provide a method andan apparatus for increasing image coding efficiency.

Another technical aspect of the present disclosure is to provide amethod and apparatus for increasing coding efficiency in a scalingprocess.

Still another technical aspect of the present disclosure is to provide amethod and apparatus for efficiently constructing a scaling list used ina scaling process.

Yet another technical aspect of the present disclosure is to provide amethod and apparatus for hierarchically signaling scaling list relatedinformation used in a scaling process.

Yet another technical aspect of the present disclosure is to provide amethod and apparatus for efficiently applying a scaling list-basedscaling process.

According to an embodiment of this document, scaling list data may besignaled through an adaptation parameter set (APS). Furthermore, the APSmay be identified based on APS ID information included in the APS. TheAPS may include scaling list data based on APS type informationindicating the APS for the scaling list data included in the APS.Furthermore, a value of the APS ID information may have a value within aspecific range with respect to the APS type information indicating theAPS for the scaling list data.

According to an embodiment of this document, enabled flag informationindicating whether scaling list data is used may be hierarchicallysignaled. Enabled flag information in a lower level syntax (e.g., apicture header/slice header/type group header) may be signaled based onenabled flag information signaled in a higher level syntax (e.g., anSPS).

According to an embodiment of this document, an SPS syntax and a PPSsyntax may be constructed so that scaling list data syntax is notdirectly signaled in an SPS or PPS level. Accordingly, coding efficiencycan be improved by individually parsing/signaling scaling list data inan APS based on enabled flag information in an SPS.

According to an embodiment of this document, there is provided avideo/image decoding method performed by a decoding apparatus. Thevideo/image decoding method may include methods disclosed in embodimentsof this document.

According to an embodiment of this document, there is provided adecoding apparatus performing video/image decoding. The decodingapparatus may perform methods disclosed in embodiments of this document.

According to an embodiment of this document, there is provided avideo/image encoding method performed by an encoding apparatus. Thevideo/image encoding method may include methods disclosed in embodimentsof this document.

According to an embodiment of this document, there is provided anencoding apparatus performing video/image encoding. The encodingapparatus may perform methods disclosed in embodiments of this document.

According to an embodiment of this document, there is provided acomputer-readable digital storage medium in which encoded video/imageinformation generated according to a video/image encoding methoddisclosed in at least one of embodiments of this document is stored.

According to an embodiment of this document, there is provided acomputer-readable digital storage medium in which encoded information orencoded video/image information causing the decoding apparatus toperform a video/image decoding method disclosed in at least one ofembodiments of this document is stored.

This document may have various effects. For example, according to anembodiment of this document, overall image/video compression efficiencycan be improved. Furthermore, according to an embodiment of thisdocument, coding efficiency can be enhanced and subjective/objectivevisual quality can be improved by applying an efficient scaling process.Furthermore, according to an embodiment of this document, a scaling listused in a scaling process can be efficiently constructed, and thusscaling list-related information can be hierarchically signaled.Furthermore, according to an embodiment of this document, codingefficiency can be increased by efficiently applying a scaling list-basedscaling process. Furthermore, according to an embodiment of thisdocument, effects in that an implementation is facilitated and the worstcase memory requirement is restricted by imposing restrictions on ascaling list matrix used in a scaling process can be obtained.

Effects which may be obtained through detailed embodiments of thisdocument are not limited to the above listed effects. For example, theremay be various technical effects which may be understood or derived by aperson having ordinary skill in the related art from this document.Accordingly, detailed effects of this document are not limited to thoseexplicitly described in this document, and may include various effectswhich may be understood or derived from technical characteristics ofthis document.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 schematically illustrates an example of a video/image codingsystem which may be applied to embodiments of this document.

FIG. 2 is a diagram schematically describing a configuration of avideo/image encoding apparatus to which embodiments of this document maybe applied.

FIG. 3 is a diagram schematically describing a configuration of avideo/image decoding apparatus to which embodiments of this document maybe applied.

FIG. 4 illustrates an example of a schematic video/image encoding methodto which an embodiment of this document may be applied.

FIG. 5 illustrates an example of a schematic video/image decoding methodto which an embodiment of this document may be applied.

FIG. 6 exemplarily illustrates a hierarchical structure for a codedimage/video.

FIGS. 7 and 8 schematically illustrate examples of a video/imageencoding method and related components according to an embodiment(s) ofthis document.

FIGS. 9 and 10 schematically illustrate examples of a video/imagedecoding method and related components according to an embodiment(s) ofthis document.

FIG. 11 illustrates an example of a content streaming system to whichembodiments disclosed in this document may be applied.

DESCRIPTION OF EXEMPLARY EMBODIMENTS

This document may be modified in various ways and may have variousembodiments, and specific embodiments will be illustrated in thedrawings and described in detail. However, this does not intend to limitthis document to the specific embodiments. Terms commonly used in thisspecification are used to describe a specific embodiment and is not usedto limit the technical spirit of this document. An expression of thesingular number includes plural expressions unless evidently expressedotherwise in the context. A term, such as “include” or “have” in thisspecification, should be understood to indicate the existence of acharacteristic, number, step, operation, element, part, or a combinationof them described in the specification and not to exclude the existenceor the possibility of the addition of one or more other characteristics,numbers, steps, operations, elements, parts or a combination of them.

Meanwhile, elements in the drawings described in this document areindependently illustrated for convenience of description related todifferent characteristic functions. This does not mean that each of theelements is implemented as separate hardware or separate software. Forexample, at least two of elements may be combined to form a singleelement, or a single element may be divided into a plurality ofelements. An embodiment in which elements are combined and/or separatedis also included in the scope of rights of this document unless itdeviates from the essence of this document.

In this document, the term “A or B” may mean “only A”, “only B”, or“both A and B”. In other words, in this document, the term “A or B” maybe interpreted to indicate “A and/or B”. For example, in this document,the term “A, B or C” may mean “only A”, “only B”, “only C”, or “anycombination of A, B and C”.

A slash “/” or a comma used in this document may mean “and/or”. Forexample, “A/B” may mean “A and/or B”. Accordingly, “A/B” may mean “onlyA”, “only B”, or “both A and B”. For example, “A, B, C” may mean “A, Bor C”.

In this document, “at least one of A and B” may mean “only A”, “only B”,or “both A and B”. Further, in this document, the expression “at leastone of A or B” or “at least one of A and/or B” may be interpreted thesame as “at least one of A and B”.

Further, in this document, “at least one of A, B and C” may mean “onlyA”, “only B”, “only C”, or “any combination of A, B and C”. Further, “atleast one of A, B or C” or “at least one of A, B and/or C” may mean “atleast one of A, B and C”.

Further, the parentheses used in this document may mean “for example”.Specifically, in the case that “prediction (intra prediction)” isexpressed, it may be indicated that “intra prediction” is proposed as anexample of “prediction”. In other words, the term “prediction” in thisdocument is not limited to “intra prediction”, and it may be indicatedthat “intra prediction” is proposed as an example of “prediction”.Further, even in the case that “prediction (i.e., intra prediction)” isexpressed, it may be indicated that “intra prediction” is proposed as anexample of “prediction”.

This document relates to video/image coding. For example, themethods/embodiments disclosed in this document may be applied to amethod disclosed in the versatile video coding (VVC). Further, themethods/embodiments disclosed in this document may be applied to amethod disclosed in the essential video coding (EVC) standard, theAOMedia. Video 1 (AV1) standard, the 2nd generation of audio videocoding standard (AVS2), or the next generation video/image codingstandard (e.g., H.267 or H.268, etc.).

This document presents various embodiments of video/image coding, andthe embodiments may be performed in combination with each other unlessotherwise mentioned.

In this document, a video may mean a set of a series of images accordingto the passage of time. A picture generally means a unit representingone image in a specific time period, and a slice/tile is a unitconstituting a part of the picture in coding. The slice/tile may includeone or more coding tree units (CTUs). One picture may consist of one ormore slices/tiles. A tile is a rectangular region of CTUs within aparticular tile column and a particular tile row in a picture. The tilecolumn is a rectangular region of CTUs having a height equal to theheight of the picture and a width specified by syntax elements in thepicture parameter set. The tile row is a rectangular region of CTUshaving a height specified by syntax elements in the picture parameterset and a width equal to the width of the picture. A tile scan is aspecific sequential ordering of CTUs partitioning a picture in which theCTUs are ordered consecutively in CTU raster scan in a tile whereastiles in a picture are ordered consecutively in a raster scan of thetiles of the picture. A slice includes an integer number of completetiles or an integer number of consecutive complete CTU rows within atile of a picture that may be exclusively contained in a single NALunit.

Meanwhile, one picture may be divided into two or more subpictures. Thesubpicture may be a rectangular region of one or more slices within thepicture.

A pixel or a pel may mean a smallest unit constituting one picture (orimage). Also, ‘sample’ may be used as a term corresponding to a pixel. Asample may generally represent a pixel or a value of a pixel, and mayrepresent only a pixel/pixel value of a luma component or only apixel/pixel value of a chroma component. Alternatively, a sample maymean a pixel value in the spatial domain, or may mean a transformcoefficient in the frequency domain when the pixel value is transformedinto the frequency domain.

A unit may represent a basic unit of image processing. The unit mayinclude at least one of a specific region of the picture and informationrelated to the region. One unit may include one luma block and twochroma (e.g., cb, cr) blocks. The unit may be used interchangeably withterms such as block or area in some cases. In a general case, an M×Nblock may include samples (or sample arrays) or a set (or array) oftransform coefficients of M columns and N rows.

Also, in this document, at least one of quantization/dequantizationand/or transform/inverse transform may be omitted. When thequantization/dequantization is omitted, the quantized transformcoefficient may be referred to as a transform coefficient. When thetransform/inverse transform is omitted, transform coefficients may becalled coefficients or residual coefficients, or may still be calledtransform coefficients for the sake of uniformity of expression.

In this document, a quantized transform coefficient and a transformcoefficient may be referred to as a transform coefficient and a scaledtransform coefficient, respectively. In this case, the residualinformation may include information about the transform coefficient(s),and the information about the transform coefficient(s) may be signaledthrough a residual coding syntax. Transform coefficients may be derivedbased on residual information (or information about transformcoefficient(s)), and scaled transform coefficients may be derivedthrough inverse transform (scaling) on the transform coefficients.Residual samples may be derived based on an inverse transform(transform) for the scaled transform coefficients. This may beapplied/expressed in other parts of this document as well.

In this document, technical features individually explained in onedrawing may be individually implemented, or may be simultaneouslyimplemented.

Hereinafter, preferred embodiments of this document are described morespecifically with reference to the accompanying drawings. Hereinafter,in the drawings, the same reference numeral is used in the same element,and a redundant description of the same element may be omitted.

FIG. 1 schematically illustrates an example of a video/image codingsystem to which embodiments of this document may be applied.

Referring to FIG. 1, a video/image coding system may include a firstdevice (source device) and a second device (receiving device). Thesource device may deliver encoded video/image information or data in theform of a file or streaming to the receiving device via a digitalstorage medium or network.

The source device may include a video source, an encoding apparatus, anda transmitter. The receiving device may include a receiver, a decodingapparatus, and a renderer. The encoding apparatus may be called avideo/image encoding apparatus, and the decoding apparatus may be calleda video/image decoding apparatus. The transmitter may be included in theencoding apparatus. The receiver may be included in the decodingapparatus. The renderer may include a display, and the display may beconfigured as a separate device or an external component.

The video source may acquire video/image through a process of capturing,synthesizing, or generating the video/image. The video source mayinclude a video/image capture device and/or a video/image generatingdevice. The video/image capture device may include, for example, one ormore cameras, video/image archives including previously capturedvideo/images, and the like. The video/image generating device mayinclude, for example, computers, tablets and smartphones, and may(electronically) generate video/images. For example, a virtualvideo/image may be generated through a computer or the like. In thiscase, the video/image capturing process may be replaced by a process ofgenerating related data.

The encoding apparatus may encode input video/image. The encodingapparatus may perform a series of procedures such as prediction,transform, and quantization for compression and coding efficiency. Theencoded data (encoded video/image information) may be output in the formof a bitstream.

The transmitter may transmit the encoded image/image information or dataoutput in the form of a bitstream to the receiver of the receivingdevice through a digital storage medium or a network in the form of afile or streaming. The digital storage medium may include variousstorage mediums such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and thelike. The transmitter may include an element for generating a media filethrough a predetermined file format and may include an element fortransmission through a broadcast/communication network. The receiver mayreceive/extract the bitstream and transmit the received bitstream to thedecoding apparatus.

The decoding apparatus may decode the video/image by performing a seriesof procedures such as dequantization, inverse transform, and predictioncorresponding to the operation of the encoding apparatus.

The renderer may render the decoded video/image. The renderedvideo/image may be displayed through the display.

FIG. 2 is a schematic diagram illustrating a configuration of avideo/image encoding apparatus to which the embodiment(s) of the presentdocument may be applied. Hereinafter, the encoding apparatus may includean image encoding apparatus and/or a video encoding apparatus.

Referring to FIG. 2, the encoding apparatus 200 includes an imagepartitioner 210, a predictor 220, a residual processor 230, and anentropy encoder 240, an adder 250, a filter 260, and a memory 270. Thepredictor 220 may include an inter predictor 221 and an intra predictor222. The residual processor 230 may include a transformer 232, aquantizer 233, a dequantizer 234, and an inverse transformer 235. Theresidual processor 230 may further include a subtractor 231. The adder250 may be called a reconstructor or a reconstructed block generator.The image partitioner 210, the predictor 220, the residual processor230, the entropy encoder 240, the adder 250, and the filter 260 may beconfigured by at least one hardware component (e.g., an encoder chipsetor processor) according to an embodiment. In addition, the memory 270may include a decoded picture buffer (DPB) or may be configured by adigital storage medium. The hardware component may further include thememory 270 as an internal/external component.

The image partitioner 210 may partition an input image (or a picture ora frame) input to the encoding apparatus 200 into one or moreprocessors. For example, the processor may be called a coding unit (CU).In this case, the coding unit may be recursively partitioned accordingto a quad-tree binary-tree ternary-tree (QTBTTT) structure from a codingtree unit (CTU) or a largest coding unit (LCU). For example, one codingunit may be partitioned into a plurality of coding units of a deeperdepth based on a quad tree structure, a binary tree structure, and/or aternary structure. In this case, for example, the quad tree structuremay be applied first and the binary tree structure and/or ternarystructure may be applied later. Alternatively, the binary tree structuremay be applied first. The coding procedure according to this documentmay be performed based on the final coding unit that is no longerpartitioned. In this case, the largest coding unit may be used as thefinal coding unit based on coding efficiency according to imagecharacteristics, or if necessary, the coding unit may be recursivelypartitioned into coding units of deeper depth and a coding unit havingan optimal size may be used as the final coding unit. Here, the codingprocedure may include a procedure of prediction, transform, andreconstruction, which will be described later. As another example, theprocessor may further include a prediction unit (PU) or a transform unit(TU). In this case, the prediction unit and the transform unit may besplit or partitioned from the aforementioned final coding unit. Theprediction unit may be a unit of sample prediction, and the transformunit may be a unit for deriving a transform coefficient and/or a unitfor deriving a residual signal from the transform coefficient.

The unit may be used interchangeably with terms such as block or area insome cases. In a general case, an M×N block may represent a set ofsamples or transform coefficients composed of M columns and N rows. Asample may generally represent a pixel or a value of a pixel, mayrepresent only a pixel/pixel value of a luma component or represent onlya pixel/pixel value of a chroma component. A sample may be used as aterm corresponding to one picture (or image) for a pixel or a pel.

In the encoding apparatus 200, a prediction signal (predicted block,prediction sample array) output from the inter predictor 221 or theintra predictor 222 is subtracted from an input image signal (originalblock, original sample array) to generate a residual signal residualblock, residual sample array), and the generated residual signal istransmitted to the transformer 232. In this case, as shown, a unit forsubtracting a prediction signal (predicted block, prediction samplearray) from the input image signal (original block, original samplearray) in the encoder 200 may be called a subtractor 231. The predictormay perform prediction on a block to be processed (hereinafter, referredto as a current block) and generate a predicted block includingprediction samples for the current block. The predictor may determinewhether intra prediction or inter prediction is applied on a currentblock or CU basis. As described later in the description of eachprediction mode, the predictor may generate various information relatedto prediction, such as prediction mode information, and transmit thegenerated information to the entropy encoder 240. The information on theprediction may be encoded in the entropy encoder 240 and output in theform of a bitstream.

The intra predictor 222 may predict the current block by referring tothe samples in the current picture. The referred samples may be locatedin the neighborhood of the current block or may be located apartaccording to the prediction mode. In the intra prediction, predictionmodes may include a plurality of non-directional modes and a pluralityof directional modes. The non-directional mode may include, for example,a DC mode and a planar mode. The directional mode may include, forexample, 33 directional prediction modes or 65 directional predictionmodes according to the degree of detail of the prediction direction.However, this is merely an example, more or less directional predictionmodes may be used depending on a setting. The intra predictor 222 maydetermine the prediction mode applied to the current block by using aprediction mode applied to a neighboring block.

The inter predictor 221 may derive a predicted block for the currentblock based on a reference block (reference sample array) specified by amotion vector on a reference picture. Here, in order to reduce theamount of motion information transmitted in the inter prediction mode,the motion information may be predicted in units of blocks, subblocks,or samples based on correlation of motion information between theneighboring block and the current block. The motion information mayinclude a motion vector and a reference picture index. The motioninformation may further include inter prediction direction (L0prediction, L1 prediction, Bi prediction, etc.) information. In the caseof inter prediction, the neighboring block may include a spatialneighboring block present in the current picture and a temporalneighboring block present in the reference picture. The referencepicture including the reference block and the reference pictureincluding the temporal neighboring block may be the same or different.The temporal neighboring block may be called a collocated referenceblock, a co-located CU (colCU), and the like, and the reference pictureincluding the temporal neighboring block may be called a collocatedpicture (colPic). For example, the inter predictor 221 may configure amotion information candidate list based on neighboring blocks andgenerate information indicating which candidate is used to derive amotion vector and/or a reference picture index of the current block.Inter prediction may be performed based on various prediction modes. Forexample, in the case of a skip mode and a merge mode, the interpredictor 221 may use motion information of the neighboring block asmotion information of the current block. In the skip mode, unlike themerge mode, the residual signal may not be transmitted. In the case ofthe motion vector prediction (MVP) mode, the motion vector of theneighboring block may be used as a motion vector predictor and themotion vector of the current block may be indicated by signaling amotion vector difference.

The predictor 220 may generate a prediction signal based on variousprediction methods described below. For example, the predictor may notonly apply intra prediction or inter prediction to predict one block butalso simultaneously apply both intra prediction and inter prediction.This may be called combined inter and intra prediction (CIIP). Inaddition, the predictor may be based on an intra block copy (IBC)prediction mode or a palette mode for prediction of a block. The IBCprediction mode or palette mode may be used for content image/videocoding of a game or the like, for example, screen content coding (SCC).The IBC basically performs prediction in the current picture but may beperformed similarly to inter prediction in that a reference block isderived in the current picture. That is, the IBC may use at least one ofthe inter prediction techniques described in this document. The palettemode may be considered as an example of intra coding or intraprediction. When the palette mode is applied, a sample value within apicture may be signaled based on information on the palette table andthe palette index.

The prediction signal generated by the predictor (including the interpredictor 221 and/or the intra predictor 222) may be used to generate areconstructed signal or to generate a residual signal. The transformer232 may generate transform coefficients by applying a transformtechnique to the residual signal. For example, the transform techniquemay include at least one of a discrete cosine transform (DCT), adiscrete sine transform (DST), a karhunen-loève transform (KLT), agraph-based transform (GBT), or a conditionally non-linear transform(CNT). Here, the GBT means transform obtained from a graph whenrelationship information between pixels is represented by the graph. TheCNT refers to transform generated based on a prediction signal generatedusing all previously reconstructed pixels. In addition, the transformprocess may be applied to square pixel blocks having the same size ormay be applied to blocks having a variable size rather than square.

The quantizer 233 may quantize the transform coefficients and transmitthem to the entropy encoder 240 and the entropy encoder 240 may encodethe quantized signal (information on the quantized transformcoefficients) and output a bitstream. The information on the quantizedtransform coefficients may be referred to as residual information. Thequantizer 233 may rearrange block type quantized transform coefficientsinto a one-dimensional vector form based on a coefficient scanning orderand generate information on the quantized transform coefficients basedon the quantized transform coefficients in the one-dimensional vectorform. Information on transform coefficients may be generated. Theentropy encoder 240 may perform various encoding methods such as, forexample, exponential Golomb, context-adaptive variable length coding(CAVLC), context-adaptive binary arithmetic coding (CABAC), and thelike. The entropy encoder 240 may encode information necessary forvideo/image reconstruction other than quantized transform coefficients(e.g., values of syntax elements, etc.) together or separately. Encodedinformation (e.g., encoded video/image information) may be transmittedor stored in units of NALs (network abstraction layer) in the form of abitstream. The video/image information may further include informationon various parameter sets such as an adaptation parameter set (APS), apicture parameter set (PPS), a sequence parameter set (SPS), or a videoparameter set (VPS). In addition, the video/image information mayfurther include general constraint information. In this document,information and/or syntax elements transmitted/signaled from theencoding apparatus to the decoding apparatus may be included invideo/picture information. The video/image information may be encodedthrough the above-described encoding procedure and included in thebitstream. The bitstream may be transmitted over a network or may bestored in a digital storage medium. The network may include abroadcasting network and/or a communication network, and the digitalstorage medium may include various storage media such as USB, SD, CD,DVD, Blu-ray, HDD, SSD, and the like. A transmitter (not shown)transmitting a signal output from the entropy encoder 240 and/or astorage unit (not shown) storing the signal may be included asinternal/external element of the encoding apparatus 200, andalternatively, the transmitter may be included in the entropy encoder240.

The quantized transform coefficients output from the quantizer 233 maybe used to generate a prediction signal. For example, the residualsignal (residual block or residual samples) may be reconstructed byapplying dequantization and inverse transform to the quantized transformcoefficients through the dequantizer 234 and the inverse transformer235. The adder 250 adds the reconstructed residual signal to theprediction signal output from the inter predictor 221 or the intrapredictor 222 to generate a reconstructed signal (reconstructed picture,reconstructed block, reconstructed sample array). If there is noresidual for the block to be processed, such as a case where the skipmode is applied, the predicted block may be used as the reconstructedblock. The adder 250 may be called a reconstructor or a reconstructedblock generator. The generated reconstructed signal may be used forintra prediction of a next block to be processed in the current pictureand may be used for inter prediction of a next picture through filteringas described below.

Meanwhile, luma mapping with chroma scaling (LMCS) may be applied duringpicture encoding and/or reconstruction.

The filter 260 may improve subjective/objective image quality byapplying filtering to the reconstructed signal. For example, the filter260 may generate a modified reconstructed picture by applying variousfiltering methods to the reconstructed picture and store the modifiedreconstructed picture in the memory 270, specifically, a DPB of thememory 270. The various filtering methods may include, for example,deblocking filtering, a sample adaptive offset, an adaptive loop filter,a bilateral filter, and the like. The filter 260 may generate variousinformation related to the filtering and transmit the generatedinformation to the entropy encoder 240 as described later in thedescription of each filtering method. The information related to thefiltering may be encoded by the entropy encoder 240 and output in theform of a bitstream.

The modified reconstructed picture transmitted to the memory 270 may beused as the reference picture in the inter predictor 221. When the interprediction is applied through the encoding apparatus, predictionmismatch between the encoding apparatus 200 and the decoding apparatusmay be avoided and encoding efficiency may be improved.

The DPB of the memory 270 may store the modified reconstructed picturefor use as a reference picture in the inter predictor 221. The memory270 may store the motion information of the block from which the motioninformation in the current picture is derived (or encoded) and/or themotion information of the blocks in the picture that have already beenreconstructed. The stored motion information may be transmitted to theinter predictor 221 and used as the motion information of the spatialneighboring block or the motion information of the temporal neighboringblock. The memory 270 may store reconstructed samples of reconstructedblocks in the current picture and may transfer the reconstructed samplesto the intra predictor 222.

FIG. 3 is a schematic diagram illustrating a configuration of avideo/image decoding apparatus to which the embodiment(s) of the presentdocument may be applied. Hereinafter, the decoding apparatus may includean image decoding apparatus and/or a video decoding apparatus.

Referring to FIG. 3, the decoding apparatus 300 may include an entropydecoder 310, a residual processor 320, a predictor 330, an adder 340, afilter 350, a memory 360. The predictor 330 may include an interpredictor 331 and an intra predictor 332. The residual processor 320 mayinclude a dequantizer 321 and an inverse transformer 321. The entropydecoder 310, the residual processor 320, the predictor 330, the adder340, and the filter 350 may be configured by a hardware component (e.g.,a decoder chipset or a processor) according to an embodiment. Inaddition, the memory 360 may include a decoded picture buffer (DPB) ormay be configured by a digital storage medium. The hardware componentmay further include the memory 360 as an internal/external component.

When a bitstream including video/image information is input, thedecoding apparatus 300 may reconstruct an image corresponding to aprocess in which the video/image information is processed in theencoding apparatus of FIG. 2. For example, the decoding apparatus 300may derive units/blocks based on block partition related informationobtained from the bitstream. The decoding apparatus 300 may performdecoding using a processor applied in the encoding apparatus. Thus, theprocessor of decoding may be a coding unit, for example, and the codingunit may be partitioned according to a quad tree structure, binary treestructure and/or ternary tree structure from the coding tree unit or thelargest coding unit. One or more transform units may be derived from thecoding unit. The reconstructed image signal decoded and output throughthe decoding apparatus 300 may be reproduced through a reproducingapparatus.

The decoding apparatus 300 may receive a signal output from the encodingapparatus of FIG. 2 in the form of a bitstream, and the received signalmay be decoded through the entropy decoder 310. For example, the entropydecoder 310 may parse the bitstream to derive information (e.g.,video/image information) necessary for image reconstruction (or picturereconstruction). The video/image information may further includeinformation on various parameter sets such as an adaptation parameterset (APS), a picture parameter set (PPS), a sequence parameter set(SPS), or a video parameter set (VPS). In addition, the video/imageinformation may further include general constraint information. Thedecoding apparatus may further decode picture based on the informationon the parameter set and/or the general constraint information.Signaled/received information and/or syntax elements described later inthis document may be decoded may decode the decoding procedure andobtained from the bitstream. For example, the entropy decoder 310decodes the information in the bitstream based on a coding method suchas exponential Golomb coding, CAVLC, or CABAC, and output syntaxelements required for image reconstruction and quantized values oftransform coefficients for residual. More specifically, the CABACentropy decoding method may receive a bin corresponding to each syntaxelement in the bitstream, determine a context model using a decodingtarget syntax element information, decoding information of a decodingtarget block or information of a symbol/bin decoded in a previous stage,and perform an arithmetic decoding on the bin by predicting aprobability of occurrence of a bin according to the determined contextmodel, and generate a symbol corresponding to the value of each syntaxelement. In this case, the CABAC entropy decoding method may update thecontext model by using the information of the decoded symbol/bin for acontext model of a next symbol/bin after determining the context model.The information related to the prediction among the information decodedby the entropy decoder 310 may be provided to the predictor (the interpredictor 332 and the intra predictor 331), and the residual value onwhich the entropy decoding was performed in the entropy decoder 310,that is, the quantized transform coefficients and related parameterinformation, may be input to the residual processor 320. The residualprocessor 320 may derive the residual signal (the residual block, theresidual samples, the residual sample array). In addition, informationon filtering among information decoded by the entropy decoder 310 may beprovided to the filter 350. Meanwhile, a receiver (not shown) forreceiving a signal output from the encoding apparatus may be furtherconfigured as an internal/external element of the decoding apparatus300, or the receiver may be a component of the entropy decoder 310.Meanwhile, the decoding apparatus according to this document may bereferred to as a video/image/picture decoding apparatus, and thedecoding apparatus may be classified into an information decoder(video/image/picture information decoder) and a sample decoder(video/image/picture sample decoder). The information decoder mayinclude the entropy decoder 310, and the sample decoder may include atleast one of the dequantizer 321, the inverse transformer 322, the adder340, the filter 350, the memory 360, the inter predictor 332, and theintra predictor 331.

The dequantizer 321 may dequantize the quantized transform coefficientsand output the transform coefficients. The dequantizer 321 may rearrangethe quantized transform coefficients in the form of a two-dimensionalblock form. In this case, the rearrangement may be performed based onthe coefficient scanning order performed in the encoding apparatus. Thedequantizer 321 may perform dequantization on the quantized transformcoefficients by using a quantization parameter (e.g., quantization stepsize information) and obtain transform coefficients.

The inverse transformer 322 inversely transforms the transformcoefficients to obtain a residual signal (residual block, residualsample array).

The predictor may perform prediction on the current block and generate apredicted block including prediction samples for the current block. Thepredictor may determine whether intra prediction or inter prediction isapplied to the current block based on the information on the predictionoutput from the entropy decoder 310 and may determine a specificintra/inter prediction mode.

The predictor 320 may generate a prediction signal based on variousprediction methods described below. For example, the predictor may notonly apply intra prediction or inter prediction to predict one block butalso simultaneously apply intra prediction and inter prediction. Thismay be called combined inter and intra prediction (CIIP). In addition,the predictor may be based on an intra block copy (IBC) prediction modeor a palette mode for prediction of a block. The IBC prediction mode orpalette mode may be used for content image/video coding of a game or thelike, for example, screen content coding (SCC). The IBC basicallyperforms prediction in the current picture but may be performedsimilarly to inter prediction in that a reference block is derived inthe current picture. That is, the IBC may use at least one of the interprediction techniques described in this document. The palette mode maybe considered as an example of intra coding or intra prediction. Whenthe palette mode is applied, a sample value within a picture may besignaled based on information on the palette table and the paletteindex.

The intra predictor 331 may predict the current block by referring tothe samples in the current picture. The referenced samples may belocated in the neighborhood of the current block or may be located apartaccording to the prediction mode. In intra prediction, prediction modesmay include a plurality of non-directional modes and a plurality ofdirectional modes. The intra predictor 331 may determine the predictionmode applied to the current block by using the prediction mode appliedto the neighboring block.

The inter predictor 332 may derive a predicted block for the currentblock based on a reference block (reference sample array) specified by amotion vector on a reference picture. In this case, in order to reducethe amount of motion information transmitted in the inter predictionmode, motion information may be predicted in units of blocks, subblocks,or samples based on correlation of motion information between theneighboring block and the current block. The motion information mayinclude a motion vector and a reference picture index. The motioninformation may further include inter prediction direction (L0prediction, L1 prediction, Bi prediction, etc.) information. In the caseof inter prediction, the neighboring block may include a spatialneighboring block present in the current picture and a temporalneighboring block present in the reference picture. For example, theinter predictor 332 may configure a motion information candidate listbased on neighboring blocks and derive a motion vector of the currentblock and/or a reference picture index based on the received candidateselection information. Inter prediction may be performed based onvarious prediction modes, and the information on the prediction mayinclude information indicating a mode of inter prediction for thecurrent block.

The adder 340 may generate a reconstructed signal (reconstructedpicture, reconstructed block, reconstructed sample array) by adding theobtained residual signal to the prediction signal (predicted block,predicted sample array) output from the predictor (including the interpredictor 332 and/or the intra predictor 331). If there is no residualfor the block to be processed, such as when the skip mode is applied,the predicted block may be used as the reconstructed block.

The adder 340 may be called reconstructor or a reconstructed blockgenerator. The generated reconstructed signal may be used for intraprediction of a next block to be processed in the current picture, maybe output through filtering as described below, or may be used for interprediction of a next picture.

Meanwhile, luma mapping with chroma scaling (LMCS) may be applied in thepicture decoding process.

The filter 350 may improve subjective/objective image quality byapplying filtering to the reconstructed signal. For example, the filter350 may generate a modified reconstructed picture by applying variousfiltering methods to the reconstructed picture and store the modifiedreconstructed picture in the memory 360, specifically, a DPB of thememory 360. The various filtering methods may include, for example,deblocking filtering, a sample adaptive offset, an adaptive loop filter,a bilateral filter, and the like.

The (modified) reconstructed picture stored in the DPB of the memory 360may be used as a reference picture in the inter predictor 332. Thememory 360 may store the motion information of the block from which themotion information in the current picture is derived (or decoded) and/orthe motion information of the blocks in the picture that have alreadybeen reconstructed. The stored motion information may be transmitted tothe inter predictor 260 so as to be utilized as the motion informationof the spatial neighboring block or the motion information of thetemporal neighboring block. The memory 360 may store reconstructedsamples of reconstructed blocks in the current picture and transfer thereconstructed samples to the intra predictor 331.

In the present disclosure, the embodiments described in the filter 260,the inter predictor 221, and the intra predictor 222 of the encodingapparatus 200 may be the same as or respectively applied to correspondto the filter 350, the inter predictor 332, and the intra predictor 331of the decoding apparatus 300. The same may also apply to the unit 332and the intra predictor 331.

As described above, in performing video coding, a prediction isperformed to enhance compression efficiency. A predicted block includingprediction samples for a current block, that is, a target coding block,can be generated through the prediction. In this case, the predictedblock includes the prediction samples in a spatial domain (or pixeldomain). The predicted block is identically derived in the encodingapparatus and the decoding apparatus. The encoding apparatus can enhanceimage coding efficiency by signaling, to the decoding apparatus,information on a residual (residual information) between the originalblock not an original sample value itself of the original block and thepredicted block. The decoding apparatus may derive a residual blockincluding residual samples based on the residual information, maygenerate a reconstructed including reconstructed samples by adding theresidual block and the predicted block, and may generate a reconstructedpicture including the reconstructed blocks.

The residual information may be generated through a transform andquantization procedure. For example, the encoding apparatus may derivethe residual block between the original block and the predicted block,may derive transform coefficients by performing a transform procedure onthe residual samples (residual sample array) included in the residualblock, may derive quantized transform coefficients by performing aquantization procedure on the transform coefficients, and may signalrelated residual information to the decoding apparatus (through abitstream). In this case, the residual information may includeinformation, such as value information, location information, transformscheme, transform kernel, and quantization parameter of the quantizedtransform coefficients. The decoding apparatus may perform adequantization/inverse transform procedure based on the residualinformation, and may derive residual samples (or residual block). Thedecoding apparatus may generate a reconstructed picture based on thepredicted block and the residual block. Furthermore, the encodingapparatus may derive a residual block bydequantizing/inverse-transforming the quantized transform coefficientsfor reference to the inter prediction of a subsequent picture, and maygenerate a reconstructed picture.

The intra prediction may indicate prediction that generates predictionsamples for the current block based on reference samples in a picture towhich the current block belongs (hereinafter, referred to as a currentpicture). When the intra prediction is applied to the current block,neighboring reference samples to be used for the intra prediction of thecurrent block may be derived. The neighboring reference samples of thecurrent block may include a total of 2×nH samples which are samplesadjacent to the left boundary and samples neighboring to the bottom-leftof the current block of size nW×nH, a total of 2×nW samples which aresamples adjacent to the top boundary of the current block and samplesneighboring the top-right of the current block, and one sampleneighboring the top-left of the current block. Alternatively, theneighboring reference samples of the current block may include topneighboring samples of a plurality of columns and left neighboringsamples of a plurality of rows. In addition, the neighboring referencesamples of the current block may include a total of nH samples adjacentto the right boundary of the current block of size nW×nH, a total of nWsamples adjacent to the bottom boundary of the current block, and onesample neighboring the bottom-right of the current block.

However, some of the neighboring reference samples of the current blockhave not yet been decoded or may not be available. In this case, thedecoding apparatus may construct the neighboring reference samples to beused for prediction by substituting unavailable samples with availablesamples. Alternatively, the neighboring reference samples to be used forprediction may be configured through interpolation of available samples.

When the neighboring reference samples are derived, (i) a predictionsample can be derived based on the average or interpolation of theneighboring reference samples of the current block, and (ii) theprediction sample may be derived based on a reference sample existing ina specific (prediction) direction with respect to the prediction sampleamong neighboring reference samples of the current block. The case of(i) may be called a non-directional mode or a non-angular mode, and thecase of (ii) may be called a directional mode or an angular mode.

In addition, the prediction sample may be generated throughinterpolation of a first neighboring sample located in the predictiondirection of the intra prediction mode of the current block, based onthe prediction sample of the current block, and a second neighboringsample located in a direction opposite to the prediction direction,among the neighboring reference samples. The above-described case may bereferred to as linear interpolation intra prediction (LIP). In addition,chroma prediction samples may be generated based on the luma samplesusing a linear model. This case may be called LM mode or CCLM (chromacomponent LM) mode.

Further, temporary prediction samples of the current block may bederived based on the filtered neighboring reference samples, and theprediction sample of the current block may also be derived byweighted-summing at least one reference sample, which is derivedaccording to the intra prediction mode among conventional neighboringreference samples, that is, the neighboring reference samples notfiltered, and the temporary prediction sample. The aforementioned casemay be called a position dependent intra prediction (PDPC).

Further, the prediction sample may be derived using the reference samplepositioned in a prediction direction in a corresponding line byselecting a reference sample line with the highest prediction accuracyamong the neighboring multi-reference sample lines of the current block,and an intra prediction encoding may be performed by a method forindicating (signaling) the reference sample line used at this time tothe decoding apparatus. The aforementioned case may be calledmulti-reference line (MRL) intra prediction or intra prediction based onthe MRL.

Further, the intra prediction may be performed based on the same intraprediction mode by splitting the current block into vertical orhorizontal sub-partitions, and the neighboring reference samples may bederived and used in units of sub-partition. That is, in this case, theintra prediction mode for the current block is equally applied to thesub-partitions, and the neighboring reference sample may be derived andused in units of sub-partition, thereby enhancing intra predictionperformance in some cases. Such a prediction method may be called intrasub-partitions (ISP) intra prediction or intra prediction based on theISP.

The aforementioned intra prediction methods may be called an intraprediction type separately from the intra prediction mode. The intraprediction type may be called various terms such as an intra predictiontechnique or an additional intra prediction mode. For example, the intraprediction type (or the additional intra prediction mode or the like)may include at least one of the aforementioned LIP, PDPC, MRL, and ISP.A general intra prediction method other than specific intra predictiontypes such as the LIP, the PDPC, the MRL, and the ISP may be called anormal intra prediction type. The normal intra prediction type may begenerally applied if the specific intra prediction type is not applied,and the prediction may be performed based on the aforementioned intraprediction mode. Meanwhile, a post-processing filtering for the derivedprediction sample may also be performed if necessary.

Specifically, the intra prediction process may include an intraprediction mode/type determination step, neighboring reference samplesderivation step, and a prediction sample derivation step based on theintra prediction mode/type. In addition, if necessary, a post-filteringstep may be performed on the derived prediction sample.

If intra prediction is applied, an intra prediction mode applied to acurrent block may be determined by using an intra prediction mode of aneighboring block. For example, a decoding apparatus may select, basedon a received most probable mode (MPM) index, one of MPM candidateswithin an MPM list derived based on an intra prediction mode of aneighboring block (e.g., a left and/or top neighboring block) of acurrent block and additional candidate modes, or may select, based onthe remaining intra prediction mode information, one of the remainingintra prediction modes not included in MPM candidates (and a planarmode). The MPM list may be constructed to include the planar mode as acandidate or to not include the planar mode as a candidate. For example,if an MPM list includes a planar mode as a candidate, the MPM list mayhave six candidates. If the MPM list does not include a planar mode as acandidate, the MPM list may have five candidates. If the MPM list doesnot include a planar mode as a candidate, a not-planar flag (e.g.,intra_luma_not_planar_flag) indicating whether an intra prediction modeof a current block is a not-planar mode may be signaled. For example, anMPM flag may be first signaled, and an MPM index and a not-planar flagmay be signaled when a value of the MPM flag is 1. Furthermore, an MPMindex may be signaled when a value of a not-planar flag is 1. In thiscase, the reason why the MPM list is constructed to not include theplanar mode as a candidate is for first checking whether a mode is theplanar mode by first signaling a flag (not-planar flag) because theplanar mode is always considered as an MPM, rather than that the planarmode is not an MPM.

For example, whether an intra prediction mode applied to a current blockis present among MPM candidates (and a planar mode) or is present amongthe remaining modes may be indicated based on an MPM flag (e.g.,intra_luma_mpm_flag). A value 1 of an MPM flag may indicate that anintra prediction mode for a current block is present within MPMcandidates (and a planar mode). A value 0 of the MPM flag may indicatethat an intra prediction mode for a current block is not present withinMPM candidates (and a planar mode). A value 0 of a not-planar flag(e.g., intra_luma_not_planar_flag) may indicate that an intra predictionmode for a current block is a planar mode. A value 1 of the not-planarflag value 1 may indicate that an intra prediction mode for a currentblock is not a planar mode. An MPM index may be signaled in the form ofa mpm_idx or intra_luma_mpm_idx syntax element. The remaining intraprediction mode information may be signaled in the form of arem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. Forexample, the remaining intra prediction mode information may indicateone of the remaining intra prediction modes not included in an MPMcandidates (and a planar mode) among all intra prediction modes byindexing the remaining intra prediction modes in order of a predictionmode number. An intra prediction mode

may be an intra prediction mode for a luma component (sample).Hereinafter, intra prediction mode information may include at least oneof an MPM flag (e.g., intra_luma_mpm_flag), a not-planar flag (e.g.,intra_luma_not_planar_flag), an MPM index (e.g., mpm_idx orintra_luma_mpm_idx), or remaining intra prediction mode information(rem_intra_luma_pred_mode or intra_luma_mpm_remainder). In thisdocument, an MPM list may be called various terms, such as an MPMcandidate list and a candModeList. If matrix-based intra prediction(MIP) is applied to a current block, a separate mpm flag (e.g.,intra_mip_mpm_flag), mpm index (e.g., intra_mip_mpm_idx), or remainingintra prediction mode information (e.g., intra_mip_mpm_remainder) forthe MIP may be signaled, and a not-planar flag is not signaled.

In other words, in general, if a block for an image is split, a currentblock to be coded and a neighboring block have similar imagecharacteristics. Accordingly, the probability that the current block andthe neighboring block will have intra prediction modes that areidentical with each other or similar is high. Accordingly, an encodermay use an intra prediction mode of a neighboring block in order toencode an intra prediction mode of a current block.

For example, an encoder/decoder may construct a most probable mode (MPM)for a current block. An MPM list may also be indicated as an MPMcandidate list. In this case, the MPM may mean a mode used to improvecoding efficiency by considering similarity between a current block anda neighboring block upon coding of an intra prediction mode. Asdescribed above, an MPM list may be constructed to include a planar modeor may be constructed by excluding a planar mode. For example, if an MPMlist includes a planar mode, the number of candidates of the MPM listmay be 6. Furthermore, if an MPM list does not include a planar mode,the number of candidates of the MPM list may be 5. An encoder/decodermay construct an MPM list including five or six MPMs.

In order to construct an MPM list, three types of modes of default intramodes, neighbour intra modes and derived intra modes may be taken intoconsideration. In this case, for the neighbour intra mode, twoneighboring blocks, that is, a left neighboring block and a topneighboring block, may be taken into consideration.

If an MPM list is constructed to not include a planar mode as describedabove, a planar mode is excluded from the list, and the number of MPMlist candidates may be set to 5.

Furthermore, a non-directional mode (or a non-angular mode) of intraprediction modes may include a DC mode based on an average ofneighboring reference samples of a current block or aninterpolation-based planar mode.

When inter prediction is applied, the predictor of the encodingapparatus/decoding apparatus may derive prediction samples by performinginter prediction in units of blocks. The inter prediction may be appliedwhen performing the prediction on the current block. That is, thepredictor (more specifically, inter predictor) of the encoding/decodingapparatus may derive prediction samples by performing the interprediction in units of the block. The inter prediction may representprediction derived by a method dependent to the data elements (e.g.,sample values or motion information) of a picture(s) other than thecurrent picture. When the inter prediction is applied to the currentblock, a predicted block (prediction sample array) for the current blockmay be derived based on a reference block (reference sample array)specified by the motion vector on the reference picture indicated by thereference picture index. In this case, in order to reduce an amount ofmotion information transmitted in the inter-prediction mode, the motioninformation of the current block may be predicted in units of a block, asubblock, or a sample based on a correlation of the motion informationbetween the neighboring block and the current block. The motioninformation may include the motion vector and the reference pictureindex. The motion information may further include inter-prediction type(L0 prediction, L1 prediction, Bi prediction, etc.) information. In thecase of applying the inter prediction, the neighboring block may includea spatial neighboring block which is present in the current picture anda temporal neighboring block which is present in the reference picture.A reference picture including the reference block and a referencepicture including the temporal neighboring block may be the same as eachother or different from each other. The temporal neighboring block maybe referred to as a name such as a collocated reference block, acollocated CU (colCU), etc., and the reference picture including thetemporal neighboring block may be referred to as a collocated picture(colPic). For example, a motion information candidate list may beconfigured based on the neighboring blocks of the current block and aflag or index information indicating which candidate is selected (used)may be signaled in order to derive the motion vector and/or referencepicture index of the current block. The inter prediction may beperformed based on various prediction modes and for example, in the caseof a skip mode and a merge mode, the motion information of the currentblock may be the same as the motion information of the selectedneighboring block. In the case of the skip mode, the residual signal maynot be transmitted unlike the merge mode. In the case of a motion vectorprediction (MVP) mode, the motion vector of the selected neighboringblock may be used as a motion vector predictor and a motion vectordifference may be signaled. In this case, the motion vector of thecurrent block may be derived by using a sum of the motion vectorpredictor and the motion vector difference.

The motion information may further include L0 motion information and/orL1 motion information according to the inter-prediction type (L0prediction, L1 prediction, Bi prediction, etc.). A L0-direction motionvector may be referred to as an L0 motion vector or MVL0 and anL1-direction motion vector may be referred to as an L1 motion vector orMVL1. A prediction based on the L0 motion vector may be referred to asan L0 prediction, a prediction based on the L1 motion vector may bereferred to as an L1 prediction, and a prediction based on both the L0motion vector and the L1 motion vector may be referred to as abi-prediction. Here, the L0 motion vector may indicate a motion vectorassociated with a reference picture list L0 and the L1 motion vector mayindicate a motion vector associated with a reference picture list L1.The reference picture list L0 may include pictures prior to the currentpicture in an output order and the reference picture list L1 may includepictures subsequent to the current picture in the output order, as thereference pictures. The prior pictures may be referred to as a forward(reference) picture and the subsequent pictures may be referred to as areverse (reference) picture. The reference picture list L0 may furtherinclude the pictures subsequent to the current picture in the outputorder as the reference pictures. In this case, the prior pictures may befirst indexed in the reference picture list L0 and the subsequentpictures may then be indexed. The reference picture list L1 may furtherinclude the pictures prior to the current picture in the output order asthe reference pictures. In this case, the subsequent pictures may befirst indexed in the reference picture list L1 and the prior picturesmay then be indexed. Here, the output order may correspond to a pictureorder count (POC) order.

FIG. 4 illustrates an example of a schematic video/image encoding methodto which embodiments of this document are applicable.

The method disclosed in FIG. 4 may be performed by the above-describedencoding apparatus 200 of FIG. 2. Specifically, S400 may be performed bythe inter predictor 221 or the intra predictor 222 of the encodingapparatus 200, S410, S420, S430, S440 may be performed by the subtractor231, the transformer 232, the quantizer 233 and the entropy encoder 240of the encoding apparatus 200.

Referring to FIG. 4, the encoding apparatus may derive predictionsamples through prediction for the current block (S400). The encodingapparatus may determine whether to perform inter prediction or intraprediction on the current block, and may determine the specific interprediction mode or the specific intra prediction mode based on the RDcost. According to the determined mode, the encoding apparatus mayderive the prediction samples for the current block.

The encoding apparatus may derive residual samples by comparing originalsamples and prediction samples for the current block (S410).

The encoding apparatus may derive transform coefficients through atransform process for residual samples (S420), and quantize the derivedtransform coefficients to derive quantized transform coefficients(S430).

The encoding apparatus may encode image information including predictioninformation and residual information, and output the encoded imageinformation in the form of a bitstream (S440). The predictioninformation is information related to a prediction process and mayinclude prediction mode information and motion information (e.g., whenthe inter prediction is applied). The residual information may includeinformation about the quantized transform coefficients. Residualinformation may be entropy coded.

The output bitstream may be delivered to the decoding apparatus througha storage medium or a network.

FIG. 5 shows an example of a schematic video/image decoding method towhich embodiments of the present disclosure may be applicable.

The method disclosed in FIG. 5 may be performed by the decodingapparatus 300 of FIG. 3 described above. Specifically, S500 may beperformed by the inter predictor 332 or the intra predictor 331 of thedecoding apparatus 300. The process of deriving values of related syntaxelements by decoding the prediction information included in thebitstream in S500 may be performed by the entropy decoder 310 of thedecoding apparatus 300. S510, S520, S530 and S540 may be performed bythe entropy decoder 310, the dequantizer 321, the inverse transformer322 and the adder 340 of the decoding apparatus 300, separately.

Referring to FIG. 5, the decoding apparatus may perform an operationcorresponding to the operation performed by the encoding apparatus. Thedecoding apparatus may perform the inter prediction or the intraprediction on the current block based on the received predictioninformation and derive prediction samples (S500).

The decoding apparatus may derive quantized transform coefficients forthe current block based on the received residual information (S510). Thedecoding apparatus may derive the quantized transform coefficients fromresidual information through entropy decoding.

The decoding apparatus may dequantize the quantized transformcoefficients to derive transform coefficients (S520).

The decoding apparatus derives residual samples through an inversetransform process for the transform coefficients (S530).

The decoding apparatus may generate reconstructed samples for thecurrent block based on the prediction samples and the residual samples,and generate a reconstructed picture based thereon. (S540). As describedabove, the in-loop filtering process may be further applied to thereconstructed picture thereafter.

Meanwhile, as described above, the quantizer of the encoding apparatusmay apply quantization to the transform coefficients to derive quantizedtransform coefficients, and the dequantizer of the encoding apparatus orthe dequantizer of the decoding apparatus may derive transformcoefficients by applying dequantization to the quantized transformcoefficients.

In general, in video/image coding, a quantization rate may be changed,and compression may be adjusted using the changed quantization rate.From an implementation point of view, in consideration of complexity, aquantization parameter (QP) may be used instead of using thequantization rate directly. For example, quantization parameters ofinteger values from 0 to 63 may be used, and each quantization parametervalue may correspond to an actual quantization rate. The quantizationparameter (QPy) for the luma component (luma sample) and thequantization parameter (QPc) for the chroma component (chroma sample)may be set differently.

The quantization process takes a transform coefficient (C) as an inputand divides it by a quantization rate (Q_(step)) to obtain a quantizedtransform coefficient (C′) based on this. In this case, in considerationof computational complexity, a quantization rate is multiplied by ascale to form an integer, and a shift operation may be performed by avalue corresponding to the scale value. A quantization scale may bederived based on the product of the quantization rate and the scalevalue. That is, the quantization scale may be derived according to theQP. The quantization scale may be applied to the transform coefficient(C) to derive a quantized transform coefficient (C′) based thereon.

The dequantization process is the inverse process of the quantizationprocess, and a quantized transform coefficient (C′) is multiplied by aquantization rate (Q_(step)), and a reconstructed transform coefficient(C″) can be obtained based on this. In this case, a level scale may bederived according to the quantization parameter, and the level scale maybe applied to the quantized transform coefficient (C′) to derive areconstructed transform coefficient (C″) based on this. Thereconstructed transform coefficient (C″) may be slightly different fromthe original transform coefficient (C) due to loss in the transformand/or quantization process. Accordingly, the encoding apparatusperforms the dequantization in the same manner as in the decodingapparatus.

In addition, an adaptive frequency weighting quantization technique thatadjusts quantization intensity according to frequency may be applied.The adaptive frequency weighting quantization technique is a method ofapplying different quantization strengths for each frequency. Theadaptive frequency weighting quantization may differently apply aquantization intensity for each frequency using a predefinedquantization scaling matrix. That is, the above-describedquantization/dequantization process may be further performed based onthe quantization scaling matrix. For example, different quantizationscaling metrics may be used according to the size of the current blockand/or whether the prediction mode applied to the current block is theinter prediction or the intra prediction in order to generate a residualsignal of the current block. The quantization scaling matrix may bereferred to as a quantization matrix or a scaling matrix. Thequantization scaling matrix may be predefined. In addition, for adaptivefrequency scaling, frequency quantization scale information with respectto the quantization scaling matrix may be configured/encoded in theencoding apparatus and signaled to the decoding apparatus. The frequencyquantization scale information may be referred to as quantizationscaling information. The frequency quantization scale information mayinclude scaling list data (scaling_list_data). A (modified) quantizationscaling matrix may be derived based on the scaling list data. Inaddition, the frequency quantization scale information may includepresent flag information indicating whether the scaling list dataexists. Alternatively, when the scaling list data is signaled at ahigher level (e.g., SPS), information indicating whether the scalinglist data is modified at a lower level (e.g., PPS or tile group headeretc.) may be further included.

As described above, the scaling list data may be signaled to indicate a(frequency-based quantization) scaling matrix used forquantization/dequantization.

Signaling support of default and user-defined scaling matrix exists inthe HEVC standard and is currently adopted in the VVC standard. However,for the VVC standard, additional support for signaling of the followingfunctions has been incorporated.

-   -   Three modes for scaling matrix: OFF, DEFAULT, USER_DEFINED    -   Larger size range for blocks (4×4 to 64×64 for luma, 2×2 to        32×32 for chroma)    -   Rectangle Transform Blocks (TBs)    -   Dependent quantization    -   Multiple Transform Selection (MTS)    -   Large transforms with zeroing-out high frequency coefficients    -   Intra sub-block partitioning (ISP)    -   Intra Block Copy (IBC) (also called current picture referencing        (CPR))    -   DEFAULT scaling matrix for all TB sizes, default value is 16

It should be noted that the scaling matrix should not be applied toTransform Skip (TS) and Secondary Transform (ST) for all sizes.

Hereinafter, a High Level Syntax (HSL) structure for supporting ascaling list in the VVC standard will be described in detail. First, aflag may be signaled through a Sequence Parameter Set (SPS) to indicatethat a scaling list is available for a current coded video sequence(CVS) being decoded. Then, if the flag is available, an additional flagmay be parsed to indicate whether specific data is present in thescaling list in the SPS. This can be shown in Table 1.

Table 1 is an excerpt from SPS to describe the scaling list for CVS.

TABLE 1 Descriptor seq_parameter_set_rbsp( ) { ... scaling_list_enabled_flag u(1)  if( scaling_list_enabled_flag ) {   sps_scaling_list_data_present_flag u(1)    if(sps_scaling_list_data_present_flag )     scaling_list_data( )   } ... }

Semantics of syntax elements included in the SPS syntax of Table 1 maybe shown in Table 2 below.

TABLE 2 scaling_list_enabled_flag equal to 1 specifies that a scalinglist is used for the scaling process for transform coefficients.scaling_list_enabled_flag equal to 0 specifies that scaling list is notused for the scaling process for transform coefficients.sps_scaling_list_data_present_flag equal to 1 specifies that thescaling_list_data( ) syntax structure is present in the SPS.sps_scaling_list_data_present_flag equal to 0 specifies that thescaling_list_data( ) syntax structure is not present in the SPS. Whennot present, the value of sps_scaling_list_data_present_flag is inferredto be equal to 0.

Referring to Table 1 and Table 2 above, scaling_list_enabled_flag may besignaled from the SPS. For example, if the value ofscaling_list_enabled_flag is 1, it may indicate that the scaling list isused in the scaling process for the transform coefficient, and if thevalue of scaling_list_enabled_flag is 0, it may indicate that thescaling list is not used in the scaling process for the transformcoefficient. In this case, when the value of scaling_list_enabled_flagis 1, sps_scaling_list_data_present_flag may be further signaled fromthe SPS. For example, when the value ofsps_scaling_list_data_present_flag is 1, it may indicate thatscaling_list_data( ) syntax structure is present in the SPS, and whenthe value of sps_scaling_list_data_present_flag is 0, it may indicatethat the scaling_list_data( ) syntax structure is not present in theSPS. If sps_scaling_list_data_present_flag does not exist, the value ofsps_scaling_list_data_present_flag may be inferred to be 0.

Also, a flag (e.g., pps_scaling_list_data_present_flag) may be parsedfirst in a picture parameter set (PPS). If this flag is available,scaling_list_data( ) can be parsed in the PPS. If scaling_list_data( )is initially present in the SPS and later parsed in the PPS, data in thePPS may take precedence over data in the SPS. Table 3 below is anexcerpt from the PPS to describe the scaling list data.

TABLE 3 Descriptor pic_parameter_set_rbsp( ) { ... pps_scaling_list_data_present_flag u(1)  if(pps_scaling_list_data_present_flag )   scaling_list_data( )  } ... }

Semantics of syntax elements included in the PPS syntax of Table 3 maybe shown in Table 4 below.

TABLE 4 pps_scaling_list_data_present_flag equal to 1 specifies that thescaling list data used for the pictures referring to the PPS are derivedbased on the scaling lists specified by the active SPS and the scalinglists specified by the PPS. pps_scaling_list_data_present_flag equal to0 specifies that the scaling list data used for the pictures referringto the PPS are inferred to be equal to those specified by the activeSPS. When scaling_list_enabled_flag is equal to 0, the value ofpps_scaling_list_data_present_flag shall be equal to 0. Whenscaling_list_enabled_flag is equal to 1,sps_scaling_list_data_present_flag is equal to 0 andpps_scaling_list_data_present_flag is equal to 0, the default scalinglist data are used to derive the array ScalingFactor as described in thescaling list data semantics.

Referring to Table 3 and Table 4, pps_scaling_list_data_present_flag maybe signaled from the PPS. For example, when the value ofpps_scaling_list_data_present_flag is 1, it may indicate that thescaling list data used for pictures referencing the PPS is derived basedon the scaling list specified by the active SPS and the scaling listspecified by the PPS. When the value ofpps_scaling_list_data_present_flag is 0, it may indicate that thescaling list data used for pictures referencing the PPS is inferred tobe the same as the scaling list specified by the active SPS. At thistime, when the value of scaling_list_enabled_flag is 0, the value ofpps_scaling_list_data_present_flag should be 0. When the value ofscaling_list_enabled_flag is 1, the value ofsps_scaling_list_data_present_flag is 0, and the value ofpps_scaling_list_data_present_flag is 0, the default scaling list datacan be used to derive a scaling factor array as described in the scalinglist data semantics.

The scaling list may be defined in the VVC standard for the followingquantization matrix sizes. This can be shown in Table 5 below. The rangeof support for quantization matrices has been extended to include 2×2and 64×64 as well as 4×4, 8×8, 16×16 and 32×32 in the HEVC standard.

TABLE 5 Size of quantization matrix sizeId 1 × 1 0 2 × 2 1 4 × 4 2 8 × 83 16 × 16 4 32 × 32 5 64 × 64 6

Table 5 defines sizeId for all quantization matrix sizes used. matrixIdcan be assigned for different combinations of sizeId, a prediction modeof the coding unit (CuPredMode), and color component using the abovecombination. Here, CuPredMode that can be considered may be inter,intra, and IBC (Intra Block Copy). Intra mode and IBC mode may betreated the same. Thus, the same matrixId(s) can be shared for a givencolor component. Here, the color components that can be considered maybe luma (Luma(Y)) and two color components (Cb and Cr). The allocatedmatrixId can be represented as shown in Table 6 below.

Table 6 shows matrixId according to sizeId, prediction mode, and colorcomponent.

TABLE 6 cIdx sizeId CuPredMode (Colour component) matrixId 2, 3, 4, 5, 6MODE_INTRA 0 (Y) 0 1, 2, 3, 4, 5 MODE_INTRA 1 (Cb) 1 1, 2, 3, 4, 5MODE_INTRA 2 (Cr) 2 2, 3, 4, 5, 6 MODE_INTER 0 (Y) 3 1, 2, 3, 4, 5MODE_INTER 1 (Cb) 4 1, 2, 3, 4, 5 MODE_INTER 2 (Cr) 5 2, 3, 4, 5, 6MODE_IBC 0 (Y) 0 1, 2, 3, 4, 5 MODE_IBC 1 (Cb) 1 1, 2, 3, 4, 5 MODE_IBC2 (Cr) 2

Table 7 below shows an example of a syntax structure for scaling listdata (e.g., scaling_list_data( ).

TABLE 7 Descriptor scaling_list_data( ) {  for( sizeId = 1; sizeId < 7;sizeId++ )   for( matrixId = 0; matrixId < 6; matrixId ++ ) {    if( ! ((( sizeId == 1 ) && ( matrixId % 3 == 0 ) ) ∥ (( sizeId == 6 ) && (matrixId % 3 != 0 ) )) ) {     scaling_list_pred_mode_flag[ sizeId ][matrixId ] u(1)     if( !scaling_list_pred_mode_flag[ sizeId ][ matrixId] )      scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] ue(v)    else {      nextCoef = 8      coefNum = Min( 64, ( 1 << ( sizeId <<1 ) ) )      if( sizeId > 3 ) {       scaling_list_dc_coef_minus8[sizeId − 4 ][ matrixId ] se(v)       nextCoef =      scaling_list_dc_coef_minus8[ sizeId − 4 ][ matrixId ] + 8      }     for( i = 0; i < coefNum; i++ ) {       x = DiagScanOrder[ 3 ][ 3 ][i ][ 0 ]       y = DiagScanOrder[ 3 ][ 3 ][ i ][ 1 ]       if (!(sizeId==6 && x>=4 && y>=4) ) {        scaling_list_delta_coef se(v)       nextCoef =        ( nextCoef + scaling_list_delta_coef + 256 ) %256        ScalingList[ sizeId ][ matrixId ][ i ] = nextCoef       }     }     }    }   }  } }

The semantics of syntax elements included in the syntax of Table 7 maybe shown in Table 8 below.

TABLE 8 scaling_list_pred_mode_flag[ sizeId ][ matrixId ] equal to 0specifies that the values of the scaling list are the same as the valuesof a reference scaling list. The reference scaling list is specified byscaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ].scaling_list_pred_mode_flag[ sizeId ][ matrixId ] equal to 1 specifiesthat the values of the scaling list are explicitly signalled.scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] specifies thereference scaling list used to derive ScalingList[ sizeId ][ matrixId ],the derivation of ScalingList[ sizeId ][ matrixId ] is based onscaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] as follows: -Ifscaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] is equal to 0,the scaling list is inferred from the default scaling list ScalingList[sizeId ][ matrixId ][ i ] as specified in Tables 13-16 for i = 0..Min(63, ( 1 << ( sizeId << 1 ) ) − 1 ). -Otherwise, the scaling list isinferred from the reference scaling list as follows:  For sizeId =1...6,  refMatrixId = matrixId −    scaling_list_pred_matrix_id_delta[sizeId ][ matrixId ] * (sizeId == 6 ? 3 :1)  If sizeId is equal to 1,the value of refMatrixId shall not be equal to 0 or 3. Otherwise, if sizeId is less than or equal to 5, the value of scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] shall be in therange of 0 to  matrixId, inclusive. Otherwise (sizeId is equal to 6),the value of  scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ]shall be in the range of 0 to  matrixId / 3, inclusive.scaling_list_dc_coef_minus8[ sizeId ][ matrixId ] plus 8 specifies thevalue of the variable ScalingFactor[ 4 ][ matrixId ][ 0 ][ 0 ] for thescaling list for the 16x16 size when sizeId is equal to 4 and specifiesthe value of ScalingFactor[ 5 ][ matrixId ][ 0 ][ 0 ] for the scalinglist for the 32x32 size when sizeId is equal to 5, and specifies thevalue of ScalingFactor[ 6 ][ matrixId ][ 0 ][ 0 ] for the scaling listfor the 64x64 size when sizeId is equal to 6 The value ofscaling_list_dc_coef_minus8[ sizeId ][ matrixId ] shall be in the rangeof −7 to 247, inclusive.   When scaling_list_pred_mode_flag[ sizeId ][matrixId ] is equal to 0,   scaling_list_pred_matrix_id_delta[ sizeId ][matrixId ] is equal to 0 and sizeId is greater than   3, the value ofscaling_list_dc_coef_minus8[ sizeId ][ matrixId ] is inferred to beequal to 8.   When scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId] is not equal to 0 and sizeId is   greater than 3, the value ofscaling_list_dc_coef_minus8[ sizeId ][ matrixId ] is inferred to   beequal to scaling_list_dc_coef_minus8[ sizeId ][ refMatrixId ].  scaling_list_delta_coef specifies the difference between the currentmatrix coefficient   ScalingList[ sizeId ][ matrixId ][ i ] and theprevious matrix coefficient   ScalingList[ sizeId ][ matrixId ][ i − 1], when scaling_list_pred_(—)   mode_flag[ sizeId ][ matrixId ] is equalto 1. The value of scaling_list_delta_coef shall be in   the range of−128 to 127, inclusive. The value of ScalingList[ sizeId ][ matrixId ][i ] shall   be greater than 0. When scaling_list_pred_mode_flag[ sizeId][ matrixId ] is equal to 1 and   scaling_list_delta_coef is notpresent, the value of ScalingList[ sizeId ][ matrixId ][ i ] is  inferred to be 0.

Referring to Table 7 and Table 8, in order to extract scaling list data(e.g., scaling_list_data( ), for all sizeId from 1 to 6 and matrixIdfrom 0 to 5, the scaling list data can be applied to 2×2 chromacomponent and 64×64 luma component. Then, a flag (e.g.,scaling_list_pred_mode_flag) may be parsed to indicate whether the valueof the scaling list is the same as the value of the reference scalinglist. The reference scaling list may be represented byscaling_list_pred_matrix_id_delta[sizeId][matrixId]. However, whenscaling_list_pred_mode_flag[sizeId][matrixId] is 1, scaling list datamay be explicitly signaled. When scaling_list_pred_matrix_id_delta is 0,DEFAULT mode with default value may be used as shown in Tables 9 to 12.For other values of scaling_list_pred_matrix_id_delta, as shown in thesemantics of Table 8, refMatrixId may be determined first.

In explicit signaling, that is, in a USER_DEFINED mode, the maximumnumber of signaled coefficients may be determined first. In the case ofquantization block sizes of 2×2, 4×4 and 8×8, all coefficients can besignaled. For sizes greater than 8×8, i.e., 16×16, 32×32 and 64×64, only64 coefficients can be signaled. That is, an 8×8 base matrix may besignaled and the remaining coefficients may be upsampled from the basematrix.

Table 9 is an example showing the default value ofScalingList[1][matrixId][i] (i=0 . . . 3).

TABLE 9 i 0 1 2 3 ScalingList[1][1, 2, 4, 5][i] 16 16 16 16

Table 10 is an example showing the default value ofScalingList[2][matrixId][i] (i=0 . . . 15).

TABLE 10 i 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ScalingList[ 2 ][ 0..5][ i ] 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16

Table 11 below is an example showing the default value of ScalingList[3. . . 5][matrixId][i] (i=0 . . . 63).

TABLE 11 i 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ScalingList[ 3..5 ][0..5 ][ i ] 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 i-16 0 1 2 34 5 6 7 8 9 10 11 12 13 14 15 ScalingList[ 3..5 ][ 0..5 ][ i ] 16 16 1616 16 16 16 16 16 16 16 16 16 16 16 16 i-32 0 1 2 3 4 5 6 7 8 9 10 11 1213 14 15 ScalingList[ 3..5 ][ 0..5 ][ i ] 16 16 16 16 16 16 16 16 16 1616 16 16 16 16 16 i-48 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15ScalingList[ 3..5 ][ 0..5 ][ i ] 16 16 16 16 16 16 16 16 16 16 16 16 1616 16 16

Table 12 is an example showing the default value ofScalingList[6][matrixId][i] (i=0 . . . 63).

TABLE 12 i 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ScalingList[ 6 ][ 0, 3][ i ] 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 i-16 0 1 2 3 4 56 7 8 9 10 11 12 13 14 15 ScalingList[ 6 ][ 0, 3 ][ i ] 16 16 16 16 1616 16 16 16 16 16 16 16 16 16 16 i-32 0 1 2 3 4 5 6 7 8 9 10 11 12 13 1415 ScalingList[ 6 ][ 0, 3 ][ i ] 16 16 16 16 16 16 16 16 16 16 16 16 1616 16 16 i-48 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ScalingList[ 6 ][ 0,3 ][ i ] 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16

As described above, the default scaling list data may be used to derivethe scaling factor (ScalingFactor).

Scaling factor of 5-dimensional arrayScalingFactor[sizeId][sizeId][matrixId][x][y] (where x, y=0 . . .(1<<sizeId)−1) may represent an array of scaling factors according tothe variable sizeId shown in Table 5 and the variable matrixId shown inTable 6 above.

Table 13 shows examples of deriving a scaling factor according to a sizeof a quantization matrix based on the default scaling list describedabove.

TABLE 13 The elements of the quantization matrix of size 2 × 2,ScalingFactor[1][matrixId][ ][ ], are derived as follows: ScalingFactor[ 1 ][ 1 ][ matrixId ][ x ][ y ] = ScalingList[ 1 ][matrixId ][ i ]  with i = 0..3, matrixId = 1, 2, 4, 5, x =DiagScanOrder[ 1 ][ 1 ][ i ][ 0 ], and  y = DiagScanOrder[ 1 ][ 1 ][ i][ 1 ] The elements of the quantization matrix of size 4 × 4,ScalingFactor[2][matrixId][ ][ ], are derived as follows: ScalingFactor[ 2 ][ 2 ][ matrixId ][ x ][ y ] = ScalingList[ 2 ][matrixId ][ i ]   with i = 0..15, matrixId = 0..5, x = DiagScanOrder[ 2][ 2 ][ i ][ 0 ], and   y = DiagScanOrder[ 2 ][ 2 ][ i ][ 1 ] Theelements of the quantization matrix of size 8 × 8,ScalingFactor[3][matrixId][ ][ ], are derived as follows: ScalingFactor[ 3 ][ 3 ][ matrixId ][ x ][ y ] = ScalingList[ 3 ][matrixId ][ i ]   with i = 0..63, matrixId = 0..5, x = DiagScanOrder[ 3][ 3 ][ i ][ 0 ], and   y = DiagScanOrder[ 3 ][ 3 ][ i ][ 1 ] Theelements of the quantization matrix of size 16 × 16,ScalingFactor[4][matrixId][ ][ ], are derived as follows: ScalingFactor[ 4 ][ 4 ][ matrixId ][ x * 2 + k ][ y * 2 + j ] = ScalingList[ 4 ][ matrixId ][ i ] with i = 0..63, j = 0..1, k = 0..1,matrixId = 0..5,  x = DiagScanOrder[ 3 ][ 3 ][ i ][ 0 ], and y =DiagScanOrder[ 3 ][ 3 ][ i ][ 1 ]  ScalingFactor[ 4 ][ 4 ][ matrixId ][0 ][ 0 ] =  scaling_list_dc_coef_minus8[ 0 ][ matrixId ] + 8 withmatrixId = 0..5 The elements of the quantization matrix of size 32 × 32,ScalingFactor[5][matrixId][ ][ ], are derived as follows: ScalingFactor[ 5 ][ 5 ][ matrixId ][ x * 4 + k ][ y * 4 + j ] = ScalingList[ 5 ][ matrixId ][ i ] with i = 0..63, j = 0..3, k = 0..3,matrixId = 0..5,  x = DiagScanOrder[ 3 ][ 3 ][ i ][ 0 ], and y =DiagScanOrder[ 3 ][ 3 ][ i ][ 1 ]  ScalingFactor[ 5 ][ 5 ][ matrixId ][0 ][ 0 ] =  scaling_list_dc_coef_minus8[ 1 ][ matrixId ] + 8 withmatrixId = 0..5 The elements of the quantization matrix of size 64 × 64,ScalingFactor[6][matrixId][ ][ ], are derived as follows: ScalingFactor[ 6 ][ 6 ][ matrixId ][ x * 8 + k ][ y * 8 + j ] = ScalingList[ 6 ][ matrixId ][ i ] with i = 0..63, j = 0..7, k = 0..7,matrixId = 0, 3,  x = DiagScanOrder[ 3 ][ 3 ][ i ][ 0 ], and y =DiagScanOrder[ 3 ][ 3 ][ i ][ 1 ]  ScalingFactor[ 6 ][ 6 ][ matrixId ][0 ][ 0 ] =  scaling_list_dc_coef_minus8[ 2 ][ matrixId ] + 8 withmatrixId = 0, 3   When ChromaArrayType is equal to 3, the elements ofthe chroma quantization matrix of   size 64 × 64,ScalingFactor[6][6][matrixId][ ][ ], with matrixId = 1, 2, 4 and 5 are  derived as follows:   ScalingFactor[ 6 ][ 6 ][ matrixId ][ x * 8 + k][ y * 8 + j ] =   ScalingList[ 5 ][ matrixId ][ i ] with i = 0..63, j =0..7, k = 0..7,   x = DiagScanOrder[ 3 ][ 3 ][ i ][ 0 ], and y =DiagScanOrder[ 3 ][ 3 ][ i ][ 1 ]   ScalingFactor[ 6 ][ 6] [ matrixId ][0 ][ 0 ] =   scaling_list_dc_coef_minus8[ 1 ][ matrixId ] + 8

For a quantization matrix of rectangular size, the scaling factor of a5-dimensional array ScalingFactor[sizeIdW][sizeIdH][matrixId][x][y],where x=0 . . . (1<<sizeIdW)−1, y=0 . . . (1<<sizeIdH)−1,sizeIdW!=sizeIdH) may represent an array of scaling factors according tothe variables sizeIdW and sizeIdH shown in Table 15 below, and may bederived as shown in Table 14 below.

TABLE 14 ScalingFactor[ sizeIdW ][ sizeIdH ][ matrixId ][ x ][ y ] canbe generated by ScalingList[ sizeLId ][ matrixId ][ i ] with sizeLId =max( sizeIdW, sizeIdH ), sizeIdW = 0,1..6, sizeIdH = 0,1..6, matrixId =0..5, x = 0.. ( 1 << sizeIdW) − 1, y = 0.. ( 1 << sizeIdH ) − 1, x =DiagScanOrder[ k ][ k ][ i ][ 0 ], and y = DiagScanOrder[ k ][ k ][ i ][1 ], k = min(sizeLId, 3), and ratioW = (1<<sizeIdW)/(1<<k), ratioH =(1<<sizeIdH)/(1<<k), and ratioWH = (1<<abs(sizeIdW−sizeIdH)), as thefollowing rules:  - If (sizeIdW>sizeIdH)  ScalingFactor[ sizeIdW ][sizeIdH ][ matrixId ][ x ][ y ]  = ScalingList[ sizeLId ][ matrixId ][Raster2Diag[(1<<k)*((y*ratioWH)/ratioW)  + x/ratioW]]  - else  ScalingFactor[ sizeIdW ][ sizeIdH ][ matrixId ][ x ][ y ]   =ScalingList[ sizeLId ][ matrixId ][ Raster2Diag[(1<<k)*(y/ratioH) +(x*ratioWH)/ratioH]], Where Raster2Diag[ ] is the function convertingraster scan position in one 8x8 block to diagonal scan position

The square-sized quantization matrix shall be zeroed for samples thatsatisfy the following conditions.

-   -   x>32    -   y>32    -   The decoded TU is not coded with a default transform mode,        (1<<sizeIdW)==32 and x>16    -   The decoded TU is not coded with a default transform mode,        (1<<sizeIdH)==32 and y>16

Table 15 shows an example of sizeIdW and sizeIdH according to the sizeof the quantization matrix.

TABLE 15 Size of quantization matrix sizeIdW sizeIdH 1 0 0 2 1 1 4 2 2 83 3 16 4 4 32 5 5 64 6 6

Also, as an example, the above-described scaling list data (e.g.,scaling_list_data( ) may be described based on a syntax structure asshown in Table 16 and semantics as shown in Table 17 below. As describedabove, the scaling list, the scaling matrix, the scaling factor, etc.can be derived based on the syntax elements included in the scaling listdata (e.g., scaling_list_data( ) disclosed in Table 16 and Table 17. Thesame or similar procedures as in Table 5 to Table 15 may be applied.

TABLE 16 Descriptor scaling_list_data( ) {  for( id = 0; id < 28; id ++) {   matrixSize = id < 2 ? 2 : ( id < 8 ? 4 : 8 )   if(aps_chroma_present_flag ∥ id % 3 = = 2 ∥ id = = 27 ) {   scaling_list_copy_mode_flag[ id ] u(1)    if(!scaling_list_copy_mode_flag[ id ] )     scaling_list_pred_mode_flag[ id] u(1)    if( ( scaling_list_copy_mode_flag[ id ] ∥scaling_list_pred_mode_flag[ id ] ) &&      id != 0 && id != 2 && id !=8 )     scaling_list_pred_id_delta[ id ] ue(v)    if(!scaling_list_copy_mode_flag[ id ] ) {     nextCoef = 0     if( id > 13) {      scaling_list_dc_coef[ id − 14 ] se(v)      nextCoef +=scaling_list_dc_coef[ id − 14 ]     }     for( i = 0; i < matrixSize *matrixSize; i++ ) {      x = DiagScanOrder[ 3 ][ 3 ][ i ][ 0 ]      y =DiagScanOrder[ 3 ][ 3 ][ i ][ 1 ]      if( !( id > 25 && x >= 4 && y >=4 ) ) {       scaling_list_delta_coef[ id ][ i ] se(v)       nextCoef +=scaling_list_delta_coef[ id ][ i ]      }      ScalingList[ id ][ i ] =nextCoef     }    }   }  } }

TABLE 17 scaling_list_copy_mode_flag[ id ] equal to 1 specifies that thevalues of the scaling list are the same as the values of a referencescaling list. The reference scaling list is specified byscaling_list_pred_id_delta[ id ]. scaling_list_copy_mode_flag[ id ]equal to 0 specifies that scaling_list_pred_mode_flag is present. Whennot present, the value of scaling_list_copy_mode_flag[ id ] is inferredto be equal to 1. scaling_list_pred_mode_flag[ id ] equal to 1 specifiesthat the values of the scaling list can be predicted from a referencescaling list. The reference scaling list is specified byscaling_list_pred_id_delta[ id ]. scaling_list_pred_mode_flag[ id ]equal to 0 specifies that the values of the scaling list are explicitlysignalled. When not present, the value of scaling_list_pred_mode_flag[id ] is inferred to be equal to 0. scaling_list_pred_id_delta[ id ]specifies the reference scaling list used to derive the predictedscaling matrix ScalingMatrixPred[ id ]. When not present, the value ofscaling_list_pred_id_delta[ id ] is inferred to be equal to 0. The valueof scaling_list_pred_id_delta[ id ] shall be in the range of 0 tomaxIdDelta with maxIdDelta derived depending on id as follows:  maxIdDelta = ( id < 2 ) ? id : ( (id < 8) ? ( id − 2) : ( id − 8 ) )(106) The variables refId and matrixSize are derived as follows:   refId= id − scaling_list_pred_id_delta[ id ] (107)   matrixSize = ( id < 2 )? 2 : ( ( id < 8 ) ? 4 : 8 ) (108) The (matrixSize)x(matrixSize) arrayScalingMatrixPred[ x ] [ y ] with x = 0..matrixSize − 1, y =0..matrixSize − 1 and the variable ScalingMatrixDCPred are derived asfollows: - When both scaling_list_copy_mode_flag[ id ] andscaling_list_pred_mode_flag[ id ] are equal to 0, all elements ofScalingMatrixPred are set equal to 8, and the value ofScalingMatrixDCPred is set equal to 8. - Otherwise, whenscaling_list_pred_id_delta[ id ] is equal to 0, all elements ofScalingMatrixPred are set equal to 16, and ScalingMatrixDCPred is setequal to 16. - Otherwise (either scaling_list_copy_mode_flag[ id ] orscaling_list_pred_mode_flag[ id ] is equal to 1 andscaling_list_pred_id_delta[ id ] is greater than 0), ScalingMatrixPredis set equal to ScalingMatrixRec[ refId ], and the following applies forScalingMatrixDCPred: - If refId is greater than 13, ScalingMatrixDCPredis set equal to ScalingMatrixDCRec[ refId − 14 ]. - Otherwise (refId isless than or equal to 13), ScalingMatrixDCPred is set equal toScalingMatrixPred[ 0 ][ 0 ]. scaling_list_dc_coef[ id − 14 ] is used toderive the value of the variable ScalingMatrixDC[ id − 14 ] when id isgreater than 13 as follows:  ScalingMatrixDCRec[ id − 14 ] = (ScalingMatrixDCPred + scaling_list_dc_coef[ id − 14 ] ) &  255 (109)When not present, the value of scaling_list_dc_coef[ id − 14 ] isinferred to be equal to 0. The value of scaling_list_dc_coef[ id − 14 ]shall be in the range of −128 to 127, inclusive. The value ofScalingMatrixDCRec[ id − 14 ] shall be greater than 0.scaling_list_delta_coef[ id ][ i ] specifies the difference between thecurrent matrix coefficient ScalingList[ id ][ i ] and the previousmatrix coefficient ScalingList[ id ][ i − 1 ], whenscaling_list_copy_mode_flag[ id ] is equal to 0. The value ofscaling_list_delta_coef[ id ][ i ] shall be in the range of −128 to 127,inclusive. When scaling_list_copy_mode_flag[ id ] is equal to 1, allelements of ScalingList[ id ] are set equal to 0.  The(matrixSize)x(matrixSize) array ScalingMatrixRec[ id ] is derived asfollows:   ScalingMatrixRec[ id ][ x ][ y ] = ( ScalingMatrixPred[ x ][y] + ScalingList[ id ][ k ] ) & 255 (110)    with k = 0..( matrixSize *matrixSize − 1 ),     x = DiagScanOrder[ Log2( matrixSize ) ][ Log2(matrixSize ) ][ k ][ 0 ], and     y = DiagScanOrder[ Log2( matrixSize )][ Log2( matrixSize ) ][ k ][ 1 ]  The value of ScalingMatrixRec[ id ] [x ] [ y ] shall be greater than 0.

Hereinafter, this document proposes a method for efficiently signalingscaling list data in applying an adaptive frequency weightingquantization technique in a quantization/dequantization process.

FIG. 6 exemplarily shows a hierarchical structure for a codedimage/video.

Referring to FIG. 6, the coded image/video is divided into VCL (videocoding layer) that deals with an image/video decoding process anditself, a subsystem that transmits and stores the coded information, anda network abstraction layer (NAL) that exists between the VCL andsubsystems and is responsible for network adaptation functions.

The VCL may generate VCL data including compressed image data (slicedata), or generate parameter sets including a picture parameter set(Picture Parameter Set: PPS), a sequence parameter set (SequenceParameter Set: SPS), a video parameter set (Video Parameter Set: VPS)etc. or a supplemental enhancement information (SEI) messageadditionally necessary for the decoding process of an image.

In the NAL, a NAL unit may be generated by adding header information(NAL unit header) to a raw byte sequence payload (RBSP) generated in theVCL. In this case, the RBSP refers to slice data, parameter sets, SEImessages, etc. generated in the VCL. The NAL unit header may include NALunit type information specified according to RBSP data included in thecorresponding NAL unit.

Further, the NAL unit may be divided into a VCL NAL unit and a Non-VCLNAL unit according to the RBSP generated in the VCL. The VCL NAL unitmay mean a NAL unit including information (sliced data) about an image,and the Non-VCL NAL unit may mean a NAL unit containing information(parameter set or SEI message) necessary for decoding an image.

The above-described VCL NAL unit and Non-VCL NAL unit may be transmittedthrough a network by attaching header information according to a datastandard of the subsystem. For example, the NAL unit may be transformedinto a data form of a predetermined standard such as H.266/VVC fileformat, Real-time Transport Protocol (RTP), Transport Stream (TS), etc.and transmitted through various networks.

As described above, in the NAL unit, the NAL unit type may be specifiedaccording to the RBSP data structure included in the corresponding NALunit, and information on this NAL unit type may be stored and signaledin the NAL unit header.

For example, the NAL unit may be roughly classified into the VCL NALunit type and the Non-VCL NAL unit type depending on whether the NALunit includes information about the image (slice data). The VCL NAL unittype may be classified according to property and a type of a pictureincluded in the VCL NAL unit, and the Non-VCL NAL unit type may beclassified according to the type of a parameter set.

The following is an example of the NAL unit type specified according tothe type of parameter set included in the Non-VCL NAL unit type.

-   -   APS (Adaptation Parameter Set) NAL unit: Type for NAL unit        including APS    -   DPS (Decoding Parameter Set) NAL unit: Type for NAL unit        including DPS    -   VPS (Video Parameter Set) NAL unit: Type for NAL unit including        VPS    -   SPS (Sequence Parameter Set) NAL unit: Type for NAL unit        including SPS    -   PPS (Picture Parameter Set) NAL unit: Type for NAL unit        including PPS    -   PH (Picture header) NAL unit: Type for NAL unit including PH

The above-described NAL unit types have syntax information for the NALunit type, and the syntax information may be stored and signaled in aNAL unit header. For example, the syntax information may benal_unit_type, and NAL unit types may be specified by a nal_unit_typevalue.

Meanwhile, as described above, one picture may include a plurality ofslices, and one slice may include a slice header and slice data. In thiscase, one picture header may be further added to a plurality of slices(a slice header and a slice data set) in one picture. The picture header(picture header syntax) may include information/parameters commonlyapplicable to the picture. In this document, a slice may be mixed orreplaced with a tile group. Also, in this document, a slice header maybe mixed or replaced with a type group header.

The slice header (slice header syntax) may includeinformation/parameters commonly applicable to the slice. The APS (APSsyntax) or PPS (PPS syntax) may include information/parameters commonlyapplicable to one or more slices or pictures. The SPS (SPS syntax) mayinclude information/parameters commonly applicable to one or moresequences. The VPS (VPS syntax) may include information/parameterscommonly applicable to multiple layers. The DPS (DPS syntax) may includeinformation/parameters commonly applicable to the entire video. The DPSmay include information/parameters related to concatenation of a codedvideo sequence (CVS). In this document, high level syntax (HLS) mayinclude at least one of the APS syntax, PPS syntax, SPS syntax, VPSsyntax, DPS syntax, picture header syntax, and slice header syntax.

In this document, the image/video information encoded in the encodingapparatus and signaled in the form of a bitstream to the decodingapparatus may include, as well as picture partitioning-relatedinformation in the picture, intra/inter prediction information, residualinformation, in-loop filtering information, etc. the informationincluded in the slice header, the information included in the pictureheader, the information included in the APS, the information included inthe PPS, the information included in the SPS, the information includedin the VPS, and/or the information included in the DPS. In addition, theimage/video information may further include information of the NAL unitheader.

On the other hand, APS (Adaptation Parameter Set) is used in the VVCstandard to transmit information for ALF (Adaptive Loop Filter) and LMCS(Luma Mapping with Chroma Scaling) process. In addition, the APS has anextensible structure so that it can be used to transmit other datastructures (i.e., different syntax structures). Accordingly, thisdocument proposes a method of parsing/signaling scaling list data usedfor frequency weighting quantization through the APS.

The scaling list data is quantization scale information for thefrequency weighting quantization that can be applied in thequantization/dequantization process as described above, and may be alist that associates a scale factor with each frequency index.

As an embodiment, the following Table 18 shows an example of anadaptation parameter set (APS) structure used to transmit scaling listdata.

TABLE 18 Descriptor adaptation_parameter_set_rbsp( ) { adaptation_parameter_set_id u(5)  aps_params_type u(3)  if(aps_params_type = = ALF_APS ) // 0   alf_data( )  else if (aps_params_type = = LMCS_APS ) // 1   lmcs_data( )  else if (aps_params_type = = SCALING_ APS ) // 2   scaling_list_data( ) aps_extension_flag u(1)  if( aps_extension_flag )   while(more_rbsp_data( ) )    aps_extension_data_flag u(1)  rbsp_trailing_bits() }

Semantics of syntax elements included in the APS syntax of Table 18 maybe shown in Table 19 below.

TABLE 19 adaptation_parameter_set_id provides an identifier for the APSfor reference by other syntax elements. NOTE - APSs can be shared acrosspictures and can be different in different tile groups within a picture.aps_extension_flag equal to 0 specifies that no aps_extension_data_flagsyntax elements are present in the APS RBSP syntax structure.aps_extension_flag equal to 1 specifies that there areaps_extension_data_flag syntax elements present in the APS RBSP syntaxstructure. aps_extension_data_flag may have any value. Its presence andvalue do not affect decoder conformance to profiles specified in thisversion of this Specification. Decoders conforming to this version ofthis Specification shall ignore all aps_extension_data_flag syntaxelements. aps_params_type specifies the type of APS parameters carriedin the APS as specified in the Table 19 shown below.

Referring to Table 18 and Table 19, adaptation_parameter_set_id syntaxelement may be parsed/signaled in the APS. adaptation_parameter_set_idprovides an identifier for the APS for reference of other syntaxelements. That is, the APS may be identified based on theadaptation_parameter_set_id syntax element. Theadaptation_parameter_set_id syntax element may be called APS IDinformation. The APS may be shared between pictures and may be differentin different tile groups within a picture.

In addition, aps_params_type syntax element may be parsed/signaled inthe APS. aps_params_type may indicate the type of the APS parametertransmitted from the APS as shown in Table 20 below. The aps_params_typesyntax element may be referred to as APS parameter type information orAPS type information.

For example, the following Table 20 is an example showing the types ofAPS parameters that can be transmitted through the APS, and each APSparameter type may be indicated in correspondence with a value ofaps_params_type.

TABLE 20 Name of aps_params_type aps_params_type Type of APS parameters0 ALF_APS ALF parameters 1 LMCS_APS LMCS parameters 2 SCALING_APSSCALING list data parameters 3 . . . 7 Reserved Reserved

Referring to Table 20, aps_params_type may be a syntax element forclassifying the type of the corresponding APS. When the value ofaps_params_type is 0, the corresponding APS type may be ALF_APS, thecorresponding APS may carry ALF data, and the ALF data may include ALFparameters for deriving filter/filter coefficients. When the value ofaps_params_type is 1, the corresponding APS type may be LMCS APS, thecorresponding APS may carry LMCS data, and the LMCS data may includeLMCS parameters for deriving an LMCS model/bins/mapping index. When thevalue of aps_params_type is 2, the corresponding APS type may beSCALING_APS, the corresponding APS may carry SCALING list data, and theSCALING list data may include scaling list data parameters for derivinga value of a frequency-based quantization scaling matrix/scalingfactor/scaling list.

For example, as shown in Table 18 above, the aps_params_type syntaxelement may be parsed/signaled in APS, and in this case, whenaps_params_type indicates a value of 0 (i.e., aps_params_type indicatesALF_APS) ALF data (i.e., alf_data( )) can be parsed/signaled.Alternatively, when aps_params_type has a value of 1 (i.e.,aps_params_type indicates LMCS_APS), LMCS data (ie, lmcs_data( ) may beparsed/signaled. Alternatively, when aps_params_type has a value of 2(i.e., aps_params_type indicates SCALING_APS), scaling list data (i.e.,scaling_list_data( ) may be parsed/signaled.

In addition, referring to Tables 18 and 19, aps_extension_flag syntaxelement may be parsed/signaled in the APS. aps_extension_flag mayindicate whether APS extension data flag (aps_extension_data_flag)syntax elements are present. aps_extension_flag may be used, forexample, to provide extension points for a later version of the VVCstandard. The aps_extension_flag syntax element may be called an APSextension flag. For example, when the value of aps_extension_flag is 0,it may indicate that the APS extension data flag(aps_extension_data_flag) does not exist in an APS RBSP syntaxstructure. Alternatively, when the value of aps_extension_flag is 1, itmay indicate that the APS extension data flag (aps_extension_data_flag)is present in the APS RBSP syntax structure.

The aps_extension_data_flag syntax element may be parsed/signaled basedon the aps_extension_flag syntax element. The aps_extension_data_flagsyntax element may be called an APS extension data flag. For example,when the value of aps_extension_flag is 1, aps_extension_data_flag maybe parsed/signaled, and in this case, aps_extension_data_flag may havean arbitrary value.

As described above, according to an embodiment of this document,efficient scaling list data can be carried by allocating a data type(e.g., SCALING_APS) for indicating the scaling list data andparsing/signaling a syntax element (e.g., aps_params_type) indicatingthe data type. That is, according to an embodiment of this document, thestructure of the APS in which the scaling list data is integrated may beused.

On the other hand, in the current VVC standard, the use of the scalinglist data (i.e., scaling_list_data( ) may be indicated based on whethera flag (i.e., sps_scaling_list_enabled_flag) indicating whether or notthe scaling list data is available in SPS (Sequence Parameter Set)exists. If the flag (i.e., sps_scaling_list_enabled_flag) is enabled(i.e., 1 or true as a case indicating that scaling list data isavailable), another flag (i.e., sps_scaling_list_data_present_flag) maybe parsed. Also, when sps_scaling_list_data_present_flag is enabled(i.e., when it indicates that scaling list data exists in the SPS, andis 1 or true), the scaling list data (i.e., scaling_list_data( ) may beparsed. That is, in the current VVC standard, the SPS signals thescaling list data. In this case, since the SPS enables sessionnegotiation and is generally transmitted out of band, it may beunnecessary to transmit the scaling list data as information which isrelated to the determination of the scaling factor of the transformblock and can be used during the decoding process. If the encodertransmits the scaling list data in the SPS, the decoder needs to reservea significant amount of memory to store the information obtained fromthe scaling list data and also needs to retain the information until itis used in transform block decoding. Therefore, this process may beunnecessary at the SPS level, and it may be more effective to beparsed/signaled at the lower level. Accordingly, this document proposesa hierarchical structure to effectively parse/signal the scaling listdata.

In one embodiment, the scaling list data is not parsed/signaled from thehigher-level syntax SPS, but parsed/signaled from the lower-level syntaxPPS, tile group header, slice header, and/or other appropriate headers.

For example, the SPS syntax may be modified as shown in Table 21 below.Table 21 below shows an example of SPS syntax for describing a scalinglist for CVS.

TABLE 21 Descriptor seq_parameter_set_rbsp( ) { ... scaling_list_enabled_flag u(1) ... }

The semantics of the syntax elements included in the SPS syntax of Table21 may be shown in Table 22 below.

TABLE 22 scaling_list_enabled_flag equal to 1 specifies that a scalinglist is used for the scaling process for transform coefficients.scaling_list_enabled_flag equal to 0 specifies that scaling list is notused for the scaling process for transform coefficients.

Referring to Tables 21 and 22, scaling_list_enabled_flag syntax elementmay be parsed/signaled in the SPS. The scaling_list_enabled_flag syntaxelement may indicate whether the scaling list is available based onwhether the value is 0 or 1. For example, when the value ofscaling_list_enabled_flag is 1, it indicates that the scaling list isused in the scaling process for the transform coefficient, and when thevalue of scaling_list_enabled_flag is 0, it may indicate that thescaling list is not used in the scaling process for the transformcoefficient.

That is, the scaling_list_enabled_flag syntax element may be called ascaling list available flag, and may be signaled at SPS (or SPS level).In other words, based on the value of scaling_list_enabled_flag signaledat the SPS level, it may be determined that the scaling list isbasically available for pictures in the CVS referring to thecorresponding SPS. In addition, the scaling list may be obtained bysignaling an additional available flag at a lower level than the SPS(e.g., PPS, tile group header, slice header, and/or other appropriateheader).

Furthermore, sps_scaling_list_data_present_flag syntax element may notbe parsed/signaled in an SPS. That is, flag information may not beparsed/signaled by removing the sps_scaling_list_data_present_flagsyntax element from the SPS. The sps_scaling_list_data_present_flagsyntax element may be information indicating whether a syntax structureof scaling list data is present in the SPS. The scaling list datadesignated by the SPS may be parsed/signaled based on the flaginformation. However, the scaling list data may not be parsed/signaledin an SPS level by removing the sps_scaling_list_data_present_flagsyntax element.

As described above, according to an embodiment of this document, thescaling list (scaling_list_data( ) is not directly signaled at the SPSlevel, and only the scaling list available flag(scaling_list_enabled_flag) may be configured to be explicitly signaled.Thereafter, the scaling list (scaling_list_data( ) may be individuallyparsed in the lower-level syntax based on the available flag(scaling_list_enabled_flag) in the SPS. Therefore, according to anembodiment of this document, since the scaling list data can beparsed/signaled according to a hierarchical structure, coding efficiencycan be further improved.

On the other hand, the existence or non-existence of the scaling listdata and the use of the scaling list data are conditional on theexistence of a tool enabling flag. Here, the tool enabling flag may beinformation indicating whether to enable the corresponding tool, and mayinclude, for example, scaling_list_enabled_flag syntax element. That is,the scaling_list_enabled_flag syntax element may be used to indicatewhether to enable the scaling list by indicating whether the scalinglist data is available. However, this tool should have syntacticconstraints on the decoder. That is, there must be a constraint flag toinform the decoder that this tool is not currently being used fordecoding coded video sequences (CVS). Accordingly, this documentproposes a method in which a constraint flag for scaling list data isapplied.

As an embodiment, the following Table 23 shows an example of a syntax(e.g., general constraint information syntax) for signaling scaling listdata using a constraint flag.

TABLE 23 Descriptor general_constraint_info( ) { ...no_scaling_list_constraint_flag u(1) ... }

Semantics of syntax elements included in the syntax of Table 23 may beshown in Table 24 below.

TABLE 24 no_scaling_list_constraint_flag equal to 1 specifies that it isa requirement of bitstream conformacne that scaling_list_enabled_flagshall be equal to 0. no_scaling_list_constraint_flag equal to 0 does notimpose a constraint.

Referring to Tables 23 and 24, the constraint flag may beparsed/signaled through general_constraint_info( )general_constraint_info( ) may be referred to as information about ageneral constraint information field or constraint flags. For example,no_scaling_list_constraint_flag syntax element may be used as theconstraint flag. Here, the constraint flag may be used to designateconformance bitstream properties. For example, when the value of theno_scaling_list_constraint_flag syntax element is 1,scaling_list_enabled_flag indicates a bitstream conformacne requirementthat must be specified as 0, and when the value of theno_scaling_list_constraint_flag syntax element is 0, it may indicatethat there is no restriction.

Meanwhile, as described above, according to the embodiment of thisdocument, the scaling list data may be delivered through a hierarchicalstructure. Accordingly, this document proposes a structure of scalinglist data that can be parsed/signaled through a slice header. Here, theslice header may be referred to as a tile group header, or may be mixedor replaced with a picture header.

As an embodiment, the following Table 25 shows an example of a sliceheader syntax for signaling scaling list data.

TABLE 25 Descriptor slice_header( ) {  slice_pic_parameter_set_id ue(v)...  if( scaling_list_enabled_flag ) {   slice_scaling_list_enabled_flagu(1)   if( slice_scaling_list_enabled_flag )   slice_scaling_list_aps_id u(5)  } ...  byte_alignment( ) }

The semantics of syntax elements included in the slice header syntax ofTable 25 may be expressed as Table 26 below.

TABLE 26 When present, the value of each of the slice header syntaxelements slice_pic_parameter_set_id, slice_pic_order_cnt_lsb, andslice_temporal_mvp_enabled_flag shall be the same in all slice headersof a coded picture. slice_pic_parameter_set_id specifies the value ofpps_pic_parameter_set_id for the PPS in use. The value ofslice_pic_parameter_set_id shall be in the range of 0 to 63, inclusive.slice_scaling_list_enabled_flag equal to 1 specifies that scaling listis enabled for the current slice. slice_scaling_list_enabled_flag equalto 0 specifies that scaling list is not enabled for the current slice.When slice_scaling_list_enabled_flag is not present, it is inferred tobe equal to 0. slice_scaling_list_aps_id specifies theadaptation_parameter_set_id of the SCALING DATA APS that the slicerefers to. The TemporalId of the SCALING DATA APS NAL unit havingadaptation_parameter_set_id equal to slice_scaling_list_aps_id shall beless than or equal to the TemporalId of the coded slice NAL unit. Whenmultiple SCALING DATA APSs with the same value ofadaptation_parameter_set_id are referred to by two or more slices of thesame picture, the multiple SCALING DATA APSs with the same value ofadaptation_parameter_set_id shall have the same content.

Referring to Tables 25 and 26, slice_pic_parameter_set_id syntax elementmay be parsed/signaled in the slice header. Theslice_pic_parameter_set_id syntax element may indicate an identifier fora PPS in use. That is, the slice_pic_parameter_set_id syntax element isinformation for identifying a PPS referenced in a corresponding slice,and may indicate a value of pps_pic_parameter_set_id. The value ofslice_pic_parameter_set_id must be in the range of 0 to 63. Theslice_pic_parameter_set_id syntax element may be referred to as PPSidentification information or PPS ID information referenced by a slice.

In addition, the slice_scaling_list_enabled_flag syntax element may beparsed/signaled in the slice header. The slice_scaling_list_enabled_flagsyntax element may indicate whether a scaling list is available in thecurrent slice. For example, when the value ofslice_scaling_list_enabled_flag is 1, it may indicate that the scalinglist is available in the current slice, and when the value ofslice_scaling_list_enabled_flag is 0, it may indicate that the scalinglist is not available in the current slice. Alternatively, ifslice_scaling_list_enabled_flag does not exist in the slice header, itsvalue may be inferred to be 0.

In this case, whether to parse the slice_scaling_list_enabled_flagsyntax element may be determined based on the scaling_list_enabled_flagsyntax element signaled in the higher-level syntax (i.e., SPS). Forexample, when the value of scaling_list_enabled_flag signaled from SPSis 1 (that is, when it is determined that scaling list data is availableat a higher level), slice_scaling_list_enabled_flag is parsed from theslice header, and whether to perform a scaling process may be determinedusing a scaling list in a corresponding slice.

In addition, the slice_scaling_list_aps_id syntax element may beparsed/signaled in the slice header. The slice_scaling_list_aps_idsyntax element may indicate an identifier for an APS referenced in acorresponding slice. That is, the slice_scaling_list_aps_id syntaxelement may indicate ID information of the APS(adaptation_parameter_set_id) including the scaling list data referencedby the corresponding slice. On the other hand, the TemporalId (i.e.,Temporal ID) of the APS NAL unit (i.e., the APS NAL unit including thescaling list data) having the same APS ID information(adaptation_parameter_set_id) as slice_scaling_list_aps_id must be lessthan or equal to TemporalId (i.e., Temporal ID) of the slice NAL unit tobe coded.

In addition, whether to parse the slice_scaling_list_aps_id syntaxelement may be determined based on the slice_scaling_list_enabled_flagsyntax element. For example, when the value of slice_scaling_list_aps_idis 1 (i.e., when the scaling list is determined to be available in theslice header), slice_scaling_list_aps_id may be parsed. Thereafter, thescaling list data may be obtained from the APS indicated by the parsedslice_scaling_list_aps_id.

In addition, when a plurality of SCALING DATA APSs (a plurality of APSsincluding scaling list data) having the APS ID information(adaptation_parameter_set_id) of the same value are referenced by two ormore slices in the same picture, the plurality of SCALING DATA APSshaving the APS ID information of the same value(adaptation_parameter_set_id) must include the same content.

In addition, when the above-mentioned syntax elements are present, thevalues of each of the slice header syntax elementsslice_pic_parameter_set_id, slice_pic_order_cnt_lsb, andslice_temporal_mvp_enabled_flag must be the same in all slice headers inthe coded picture.

As described above, according to an embodiment of this document, ahierarchical structure may be used to efficiently signal the scalinglist data. That is, it is possible to determine whether to use thescaling list data at each lower level by first signaling an enable flag(e.g., scaling_list_enabled_flag) indicating whether or not scaling listdata is available at a higher level (SPS syntax), and then signaling anadditional available flag (e.g., slice_scaling_list_enabled_flag) at alower level (e.g., slice header, picture header, etc.). In addition, APSID information (e.g., slice_scaling_list_aps_id) referred to by thecorresponding slice or tile group is signaled through the lower level(e.g., slice header, picture header, etc.), and the scaling list datamay be derived from the APS identified by the APS ID information.

In addition, this document may be applied such as the methods proposedin Tables 25 and 26 above in signaling the scaling list data accordingto the hierarchical structure, and the scaling list data may bedelivered through the structure of the slice header as shown in Table 27below.

As an embodiment, the following Table 27 shows an example of a sliceheader syntax for signaling the scaling list data. Here, the sliceheader may be referred to as a tile group header, or may be mixed orreplaced with a picture header.

TABLE 27 Descriptor slice_header( ) {  slice_pic_parameter_set_id ue(v)...  if( scaling_list_enabled_flag ) {   slice_scaling_list_aps_id u(5) } ...  byte_alignment( ) }

The semantics of syntax elements included in the slice header syntax ofTable 27 may be shown in Table 28 below.

TABLE 28 When present, the value of each of the slice header syntaxelements slice_pic_parameter_set_id, slice_pic_order_cnt_lsb, andslice_temporal_mvp_enabled_flag shall be the same in all slice headersof a coded picture. slice_pic_parameter_set_id specifies the value ofpps_pic_parameter_set_id for the PPS in use. The value ofslice_pic_parameter_set_id shall be in the range of 0 to 63, inclusive.slice_scaling_list_aps_id specifies the adaptation_parameter_set_id ofthe SCALING DATA APS that the slice refers to. The TemporalId of theSCALING LIST APS NAL unit having adaptation_parameter_set_id equal toslice_scaling_list_aps_id shall be less than or equal to the TemporalIdof the coded slice NAL unit. When multiple SCALING LIST APSs with thesame value of adaptation_parameter_set_id are referred to by two or moreslices of the same picture, the multiple SCALING LIST APSs with the samevalue of adaptation_parameter_set_id shall have the same content.

Referring to Tables 27 and 28 above, the slice_pic_parameter_set_idsyntax element may be parsed/signaled in the slice header. Theslice_pic_parameter_set_id syntax element may indicate an identifier fora PPS in use. That is, the slice_pic_parameter_set_id syntax element isinformation for identifying a PPS referenced in a corresponding slice,and may indicate a value of pps_pic_parameter_set_id. The value ofslice_pic_parameter_set_id must be in the range of 0 to 63. Theslice_pic_parameter_set_id syntax element may be referred to as PPSidentification information or PPS ID information referenced by a slice.

In addition, the slice_scaling_list_aps_id syntax element may beparsed/signaled in the slice header. The slice_scaling_list_aps_idsyntax element may indicate an identifier for an APS referenced in acorresponding slice. That is, the slice_scaling_list_aps_id syntaxelement may indicate ID information (adaptation_parameter_set_id) of theAPS including the scaling list data referenced by the correspondingslice. For example, the TemporalId (i.e., Temporal ID) of the APS NALunit (i.e., the APS NAL unit including the scaling list data) having thesame APS ID information (adaptation_parameter_set_id) as theslice_scaling_list_aps_id must be less than or equal to TemporalId(i.e., Temporal ID) of the slice NAL unit to be coded.

In this case, whether to parse the slice_scaling_list_aps_id syntaxelement may be determined based on the scaling_list_enabled_flag syntaxelement signaled in the higher-level syntax (i.e., SPS). For example,when the value of scaling_list_enabled_flag signaled by SPS is 1 (thatis, when it is determined that scaling list data is available at ahigher level), slice_scaling_list_aps_id may be parsed from the sliceheader. Thereafter, the scaling list data can be obtained from the APSindicated by the parsed slice_scaling_list_aps_id.

That is, according to the present embodiment, since the APS ID includingthe scaling list data can be parsed when the corresponding flag (e.g.,scaling_list_enabled_flag) in the SPS is enabled, as shown in Table 25above, based on the scaling_list_enabled_flag syntax element signaled inthe higher level syntax (i.e., SPS), the APS ID (e.g.:slice_scaling_list_aps_id) information including the scaling list datato be referenced in the lower level (e.g., slice header or pictureheader) can be parsed.

In addition, this document proposes a method of using a plurality ofAPSs to signal the scaling list data. Hereinafter, a method ofefficiently signaling a plurality of APS IDs including the scaling listdata according to an embodiment of the present document will bedescribed. This method can be useful during bitstream merging.

As an embodiment, the following Table 29 shows an example of a sliceheader syntax for signaling scaling list data using a plurality of APSs.Here, the slice header may be referred to as a tile group header, or maybe mixed or replaced with a picture header.

TABLE 29 Descriptor slice_header( ) {  slice_pic_parameter_set_id ue(v) if(scaling_list_enabled_flag) {   slice_scaling_list_enabled_flag u(1)  if( slice_scaling_list_enabled_flag ) {   num_scaling_list_aps_ids_minus1 ue(v)    for( i = 0; i <=num_scaling_list_aps_ids_minus1;    i++ )     slice_scaling_list_aps_id[i ] u(5)   }  } ...  byte_alignment( ) }

The semantics of syntax elements included in the slice header syntax ofTable 29 can be expressed as shown in Table 30 below.

TABLE 30 slice_scaling_list_enabled_flag equal to 1 specifies thatscaling list is enabled for the current slice.slice_scaling_list_enabled_flag equal to 0 specifies that scaling listis not enabled for the current slice. Whenslice_scaling_list_enabled_flag is not present, it is inferred to beequal to 0. num_scaling_list_aps_ids_minus1 plus 1 specifies the numberof SCALING LIST APSs that the slice refers to. The value ofnum_scaling_list_aps_ids_minus1 shall be in the range of 0 to 7,inclusive slice_scaling_list_aps_id[i] specifies theadaptation_parameter_set_id of the i-th SCALING LIST APS that the slicerefers to. The TemporalId of the SCALING LIST APS NAL unit havingadaptation_parameter_set_id equal to slice_scaling_list_aps_id[i] shallbe less than or equal to the TemporalId of the coded slice NAL unit.When multiple SCALING LIST APSs with the same value ofadaptation_parameter_set_id are referred to by two or more slices of thesame picture, the multiple SCALING LIST APSs with the same value ofadaptation_parameter_set_id shall have the same content.

Referring to Tables 29 and 30 above, slice_pic_parameter_set_id syntaxelement may be parsed/signaled in the slice header. Theslice_pic_parameter_set_id syntax element may indicate an identifier forthe PPS being used in the slice_pic_parameter_set_id syntax element.That is, the slice_pic_parameter_set_id syntax element is informationfor identifying a PPS referenced in a corresponding slice, and mayindicate a value of pps_pic_parameter_set_id. The value ofslice_pic_parameter_set_id must be in the range of 0 to 63. Theslice_pic_parameter_set_id syntax element may be referred to as PPSidentification information or PPS ID information referenced by a slice.

In addition, the slice_scaling_list_enabled_flag syntax element may beparsed/signaled in the slice header. The slice_scaling_list_enabled_flagsyntax element may indicate whether a scaling list is available in thecurrent slice. For example, when the value ofslice_scaling_list_enabled_flag is 1, it may indicate that the scalinglist is available in the current slice, and when the value ofslice_scaling_list_enabled_flag is 0, it may indicate that the scalinglist is not available in the current slice. Alternatively, whenslice_scaling_list_enabled_flag does not exist in the slice header, itsvalue may be inferred to be 0.

In this case, whether to parse the slice_scaling_list_enabled_flagsyntax element may be determined based on the scaling_list_enabled_flagsyntax element signaled in the higher-level syntax (i.e., SPS). Forexample, when the value of scaling_list_enabled_flag signaled from SPSis 1 (that is, when it is determined that scaling list data is availableat a higher level), slice_scaling_list_enabled_flag is parsed from theslice header, and whether to perform a scaling process may be determinedusing a scaling list in a corresponding slice.

In addition, the num_scaling_list_aps_ids_minus1 syntax element may beparsed/signaled in the slice header. The num_scaling_list_aps_ids_minus1syntax element may be information for indicating the number of APSsincluding scaling list data referenced by a corresponding slice. Forexample, a value obtained by adding 1 to the value of thenum_scaling_list_aps_ids_minus1 syntax element may be the number ofAPSs. The value of num_scaling_list_aps_ids_minus1 must be in the rangeof 0 to 7.

Here, whether to parse the num_scaling_list_aps_ids_minus1 syntaxelement may be determined based on the slice_scaling_list_enabled_flagsyntax element. For example, when the value ofslice_scaling_list_enabled_flag is 1 (i.e., when it is determined thatscaling list data is available in the corresponding slice),num_scaling_list_aps_ids_minus1 may be parsed. In this case, theslice_scaling_list_aps_id[i] syntax element may be parsed/signaled basedon the value of num_scaling_list_aps_ids_minus1.

That is, slice_scaling_list_aps_id[i] may indicate an identifier(adaptation_parameter_set_id) of an APS including i-th scaling list data(i.e., i-th SCALING LIST APS). In other words, the APS ID informationmay be signaled as many as the number of APSs indicated by thenum_scaling_list_aps_ids_minus1 syntax element. On the other hand, theTemporalId (i.e., Temporal ID) of the APS NAL unit (i.e., the APS NALunit including the scaling list data) having the same APS ID information(adaptation_parameter_set_id) as slice_scaling_list_aps_id[i] must beless than or equal to TemporalId (i.e., Temporal ID) of the slice NALunit to be coded.

In addition, when a plurality of SCALING DATA APSs (a plurality of APSsincluding scaling list data) having the APS ID information(adaptation_parameter_set_id) of the same value are referenced by two ormore slices in the same picture, the plurality of SCALING DATA APSshaving the APS ID information of the same value(adaptation_parameter_set_id) must include the same content.

Further, the present disclosure proposes a scheme for the scaling listdata not to be redundantly signaled in signaling the scaling list datain accordance with the hierarchical structure. As an embodiment, thesignaling of the scaling list data may be removed from the pictureparameter set (PPS). The scaling list data may be fully signaled by theSPS or APS and/or another appropriate header set.

As an embodiment, the following Table 31 shows an example of the PPSsyntax that does not signal the scaling list data in the PPS.

TABLE 31 Descriptor pic_parameter_set_rbsp( ) { pps_pic_parameter_set_id ue(v) ... ue(v) }

Table 32 below is an example illustrating semantics for a syntax element(e.g., pps_scaling_list_data_present_flag) which may be removed in orderto avoid redundant signaling of scaling list data in the PPS syntax ofTable 31.

TABLE 32 pps_scaling_list_data_present_flag equal to 1 specifies thatthe scaling list data used for the pictures referring to the PPS arederived based on the scaling lists specified by the active SPS and thescaling lists specified by the PPS. pps_scaling_list_data_present_flagequal to 0 specifies that the scaling list data used for the picturesreferring to the PPS are inferred to be equal to those specified by theactive SPS. When scaling_list_enabled_flag is equal to 0, the value ofpps_scaling_list_data_present_flag shall be equal to 0. Whenscaling_list_enabled_flag is equal to 1,sps_scaling_list_data_present_flag is equal to 0 andpps_scaling_list_data_present_flag is equal to 0, the default scalinglist data are used to derive the array ScalingFactor as described in thescaling list data semantics as specified in clause 7.4.7.12.

Referring to Table 31 and Table 32 above, information for signaling thescaling list data in PPS, for example, thepps_scaling_list_data_present_flag syntax element, may be removed fromthe PPS. The pps_scaling_list_data_present_flag syntax element mayrepresent whether the scaling list data is signaled by the PPS based onwhether the value thereof is 0 or 1. For example, if the value of thepps_scaling_list_data_present_flag syntax element is equal to 1, it maybe represented that the scaling list data used for pictures referring tothe PPS is derived based on the scaling list specified by the active SPSand the scaling list data specified by the PPS. If the value of thepps_scaling_list_data_present_flag syntax element is equal to 0, it maybe represented that the scaling list data used for the picturesreferring to the PPS are inferred to be equal to that specified by theactive SPS. That is, the pps_scaling_list_data_present_flag syntaxelement may be information for representing whether the scaling listdata being signaled from the PPS is present.

That is, in the present embodiment, in order to prevent the scaling listdata from being redundantly signaled, the scaling list data can be madenot to be parsed/signaled by the PPS by removing thepps_scaling_list_data_present_flag syntax element (i.e., by notsignaling the pps_scaling_list_data_present_flag syntax element) as inTable 31 above.

Further, the present disclosure proposes a scheme for signaling ascaling list matrix in an APS. The existing scheme uses three kinds ofmodes (i.e., OFF, DEFAULT, and USER_DEFINED mode). The OFF moderepresents that the scaling list data is not applied to a transformblock. The DEFAULT mode represents that a fixed value is used ingenerating the scaling matrix. The USER_DEFINED mode represents that thescaling matrix is used based on a block size, a prediction mode, and acolor component. The total number of scaling matrixes being currentlysupported in the VVC is 44, and thus is greatly increased as comparedwith the total number of scaling matrixes of 28 in HEVC. Currently, thescaling list data may be signaled by the SPS, and may conditionallyexist in the PPS. Since the scaling list data is signaled by the APS,redundant signaling of the same data by the SPS and the PPS isunnecessary, and thus may be removed.

For example, the scaling matrix defined in the current VVC representswhether the flag is enabled in the SPS by using thescaling_list_enabled_flag. If it is represented that the flag isenabled, the scaling list is used in the scaling process for thetransform coefficients, whereas if it is represented that the flag isnot enabled, the scaling list is not used (e.g., OFF mode) in thescaling process for the transform coefficients. Further, thesps_scaling_list_data_present_flag related to representing whether thescaling list data is present in the SPS may be parsed. In addition tothe signaling in the SPS, the scaling list data may also be present inthe PPS. If the pps_scaling_list_data_present_flag represents that theflag is enabled in the PPS, the scaling list data may be present in thePPS. If the scaling list data is present in both the SPS and the PPS,the scaling list data from the PPS may be used in frames referring tothe active PPS. In case that the scaling_list_enable_flag representsthat the flag is enabled, but the scaling list data is present only inthe SPS, and is not present in the PPS, the scaling list data from theSPS may be referred to by the frames. In case that thescaling_list_enable_flag represents that the flag is enabled, and thescaling list data is not present in the SPS or the PPS, the DEFAULT modemay be used. Further, the use of the DEFAULT mode may be signaled withinthe scaling list data itself. If the scaling list data is explicitlysignaled, the USER DEFINED mode may be used. A scaling factor for agiven transform block may be determined using information being signaledfrom the scaling list. For this, it is proposed to signal the scalinglist data in the APS.

Currently, the scaling list data is adopted and used in the VVC, and thescaling matrix supported in the VVC is more extensive than that in theHEVC. The scaling matrix supported in the VVC may select a block sizefrom 4×4 to 64×64 for luma, and from 2×2 to 32×32 for chroma. Further, arectangular transform block (TB) size, dependent quantization, multipletransform selection, large transform with zeroing out high frequencycoefficients, intra subblock partitioning (ISP), and intra block copy(IBC) may be integrated. The intra block copy (IBC) and the intra codingmode may share the same scaling matrix.

Accordingly, in case of the USER DEFINED mode, the number of matrixesbeing signaled may be as follow.

-   -   MatrixType: 30=2 (2 for intra & IBC/inter)×3 (Y/Cb/Cr        components)×5 (square TB size: from 4×4 to 64×64 for luma, from        2×2 to 32×32 for chroma)    -   MatrixType_DC: 14=2 (2 for intra & IBC/inter×1 for Y        component)×3 (TB size: 16×16, 32×32, 64×64)+4 (2 for intra &        IBC/inter×2 for Cb/Cr components)×2 (TB size: 16×16, 32×32)

The DC value may be separately coded with respect to scaling matrixeshaving sizes of 16×16, 32×32, and 64×64. If the transform block (TB)size is smaller than 8×8, signaling may be performed for all elements inone scaling matrix. If the transform block (TB) size is equal to orlarger than 8×8, signaling may be performed only with respect to 64elements in one 8×8 scaling matrix as a default scaling matrix. In orderto obtain a square matrix having a size larger than 8×8, the default 8×8matrix may be up-sampled corresponding to a necessary size. In case thatthe DEFAULT mode is used, the number of scaling matrixes may be set to16. Accordingly, 44 different matrixes are supported in the VVC, whereasonly 28 matrixes are supported in the HEVC. The number of scalingmatrixes supported in the VVC is more extensive than that in the HEVC,and in order to avoid redundant signaling in the SPS and/or PPS, the APSmay be used as more practical selection for signaling the scaling listdata. This can avoid unnecessary redundant signaling of the scaling listdata.

To solve the above-described problem, the present disclosure proposes ascheme for signaling the scaling matrix in the APS. For this, thescaling list data may be signaled only by the APS without being signaledby the SPS or conditional existence in the PPS. Further, the APS ID maybe signaled by the slice header.

As an embodiment, the SPS may signal a flag (e.g.,scaling_list_enable_flag) related to representing whether the scalinglist data is used, the PPS may not signal a flag (e.g.,pps_scaling_list_data_present_flag) related to representing whether thescaling list data is present by removing the flag, and the APS maysignal the scaling list data. Further, the slice header may signal theAPS ID. In this case, if the value of the scaling_list_enable_flagsignaled in the SPS is equal to 1 (i.e., if it is represented that thescaling list data is used), and the APS ID is not signaled in the sliceheader, the DEFAULT scaling matrix may be used. An embodiment of thepresent disclosure as described above may be implemented by the syntaxand the semantics as in Tables 33 to 41.

Table 33 represents an example of an APS structure used for signalingthe scaling list data.

TABLE 33 Descriptor adaptation_parameter_set_rbsp( ) { adaptation_parameter_set_id u(5)  aps_params_type u(3)  if(aps_params_type = = ALF_APS )   alf_data(adaptation_parameter_set_id ) else if ( aps_params_type = = LMCS_APS )   lmcs_data( )  else if (aps_params_type = = SCALING_ APS ) // 2   scaling_list_data( ) aps_extension_flag u(1)  if( aps_extension_flag )   while(more_rbsp_data( ) )    aps_extension_data_flag u(1)  rbsp_trailing_bits() }

The semantics of syntax elements included in the APS syntax of Table 33above may be expressed as shown in Table 34 below.

TABLE 34 adaptation_parameter_set_id provides an identifier for the APSfor reference by other syntax elements. NOTE - APSs can be shared acrosspictures and can be different in different slices within a picture.aps_extension_flag equal to 0 specifies that no aps_extension_data_flagsyntax elements are present in the APS RBSP syntax structure.aps_extension_flag equal to 1 specifies that there areaps_extension_data_flag syntax elements present in the APS RBSP syntaxstructure. aps_extension_data_flag may have any value. Its presence andvalue do not affect decoder conformance to profiles specified in thisversion of this Specification. Decoders conforming to this version ofthis Specification shall ignore all aps_extension_data_flag syntaxelements. aps_params_type specifies the type of APS parameters carriedin the APS as specified in the Table 35 shown below.

Referring to Table 33 and Table 34 above, the adaptation parameterset_id syntax element may be parsed/signaled in the APS. Theadaptation_parameter_set_id provides an identifier for the APS forreferring to other syntax elements. That is, the APS may be identifiedbased on the adaptation_parameter_set_id syntax element. Theadaptation_parameter_set_id syntax element may be called APS IDinformation. The APS may be shared between pictures, and may differ fromeach other in another slice in the picture.

Further, the aps_params_type syntax element may be parsed/signaled inthe APS. As shown in the following Table 35, the aps_params_type mayrepresent the type of an APS parameter transmitted from the APS. Theaps_params_type syntax element may be called APS parameter typeinformation or APS type information.

For example, the following Table 35 shows an example representing thetypes of APS parameters that can be transmitted through an APS, and eachAPS parameter type may be represented corresponding to anaps_params_type value.

TABLE 35 Name of aps_params_type aps_params_type Type of APS parameters0 ALF_APS ALF parameters 1 LMCS_APS LMCS parameters 2 SCALING_APSSCALING list data parameters 3 . . . 7 Reserved Reserved

Referring to Table 35 above, the aps_params_type may be a syntax elementfor classifying the type of the corresponding APS. If a value of theaps_params_type is equal to 0, the corresponding APS type may beALF_APS, the corresponding APS may carry ALF data, and ALF data mayinclude ALF parameters for deriving filters/filter coefficients. If thevalue of the aps_params_type is equal to 1, the corresponding APS typemay be LMCS_APS, the corresponding APS may carry LMCS data, and the LMCSdata may include LMCS parameters for deriving LMCS models/bins/mappingindexes. If the value of the aps_params_type is equal to 2, thecorresponding APS type may be SCALING_APS, the corresponding APS maycarry SCALING list data, and the SCALING list data may include scalinglist data parameters for deriving the value of frequency-basedquantization scaling matrix/scaling factor/scaling list.

For example, as shown in Table 33 above, the aps_params_type syntaxelement may be parsed/signaled in the APS, and in this case, if thevalue of the aps_params_type is equal to 0 (i.e., if the aps_params_typerepresents the ALF_APS), the ALF data (i.e., alf_data( ) may beparsed/signaled. Further, if the value of the aps_params_type is equalto 1 (i.e., if the aps_params_type represents the LMCS_APS), the LMCSdata (i.e., lmcs_data( ) may be parsed/signaled. Further, if the valueof the aps_params_type is equal to 2 (i.e., if the aps_params_typerepresents the SCALING_APS), the scaling list data (i.e.,scaling_list_data( ) may be parsed/signaled.

Further, referring to Table 33 and Table 34 above, theaps_extension_flag syntax element may be parsed/signaled in the APS. Theaps_extension_flag may indicate whether APS extension data flag(aps_extension_data_flag) syntax element is present. For example, theaps_extension_flag may be used to provide extension points for a laterversion of the VVC standard. The aps_extension_flag syntax element maybe called an APS extension flag. For example, if a value of theaps_extension_flag is equal to 0, it may represent that the APSextension data flag (aps_extension_data_flag) is not present in the APSRBSP syntax structure. Further, if the value of the aps_extension_flagis equal to 1, it may represent that the APS extension data flag(aps_extension_data_flag) is present in the APS RBSP syntax structure.

Based on the aps_extension_flag syntax element, theaps_extension_data_flag syntax element may be parsed/signaled. Theaps_extension_data_flag syntax element may be called the APS extensiondata flag. For example, if a value of the aps_extension_flag is equal to1, the aps_extension_data_flag may be parsed/signaled, and in this case,the aps_extension_data_flag may have a random value.

As described above, according to an embodiment of the presentdisclosure, the scaling list data can be efficiently carried byallocating the data type (e.g., SCALING_APS) for representing thescaling list data, and by parsing/signaling the syntax element (e.g.,aps_params_type) for representing the data type. That is, according toan embodiment of the present disclosure, the APS structure in which thescaling list data are integrated may be used.

Further, in signaling the scaling list data in the APS, the SPS maysignal whether the scaling list data is used, and based on this, thescaling list data may be parse/signaled according to the APS parametertype (e.g., aps_params_type) in the APS. Further, in an embodiment ofthe present disclosure, in order to avoid signaling of the redundantscaling list data in the upper level syntax, flag information related torepresenting whether the scaling list data syntax structure (e.g.,scaling_list_data( ) is present in the SPS or PPS may be made not to beparsed/signaled from the SPS or PPS, and thus the scaling list data maynot be signaled in the SPS or PPS. This may be implemented by the syntaxand the semantics as in the following Table 36 to Table 39.

For example, the SPS syntax may be corrected as in the following Table36. Table 36 represents an example of the SPS syntax structure in whichthe SPS does not signal the scaling list data.

TABLE 36 Descriptor seq_parameter_set_rbsp( ) { ... scaling_list_enabled_flag u(1) ... }

The semantics of the syntax elements included in the SPS syntax of Table36 may be modified like Table 37 below. For example, in Table 36 andTable 37, in order to avoid redundant signaling of scaling list data,some (e.g., sps_scaling_list_data_present_flag) of syntax elementsincluded in an SPS may be removed.

TABLE 37 scaling_list_enabled_flag equal to 1 specifies that a scalinglist is used for the scaling process for transform coefficients.scaling_list_enabled_flag equal to 0 specifies that scaling list is notused for the scaling process for transform coefficients.sps_scaling_list_data_present_flag equal to 1 specifies that thescaling_list_data( ) syntax structure is present in the SPS.sps_scaling_list_data_present_flag equal to 0 specifies that thescaling_list_data( ) syntax structure is not present in the SPS. Whennot present, the value of sps_scaling_list_data_present_flag is inferredto be equal to 0.

Referring to Table 36 and Table 37 above, the scaling_list_enabled_flagsyntax element may be parsed/signaled in the SPS. Thescaling_list_enabled_flag syntax element may represent whether thescaling list is used based on whether the syntax element value is 0or 1. For example, if a value of the scaling_list_enabled_flag is equalto 1, it may be represented that the scaling list is used in the scalingprocess for the transform coefficient, and if the value of thescaling_list_enabled_flag is equal to 0, it may represent that thescaling list is not used in the scaling process for the transformcoefficient.

That is, the scaling_list_enabled_flag syntax element may be called ascaling list enabled flag, and may be signaled in the SPS (or SPSlevel). In other words, based on the value of thescaling_list_enabled_flag signaled at the SPS level, the scaling listmay be determined to be basically used with respect to the pictures inthe CVS referring to the corresponding SPS. Further, the scaling listmay be obtained by signaling an additional enabled flag at a lower level(e.g., PPS, tile group header, slice header, and/or another appropriateheader) than the SPS.

Further, the sps_scaling_list_data_present_flag syntax element may notbe parsed/signaled in the SPS. That is, by removing thesps_scaling_list_data_present_flag syntax element in the SPS, this flaginformation may be made not to be parsed/signaled. Thesps_scaling_list_data_present_flag syntax element is flag informationrelated to representing whether the syntax structure of the scaling listdata is present in the SPS, and in accordance with this flaginformation, the scaling list data specified by the SPS may beparsed/signaled. However, through removal of thesps_scaling_list_data_present_flag syntax element, the SPS level may beconfigured not to directly signal the scaling list data, but toexplicitly signal the scaling list enabled flag(scaling_list_enabled_flag) only.

Further, signaling of the scaling list data in the PPS may be removed asin the following Table 38. For example, the following Table 38represents an example of the PPS syntax structure in which the PPS doesnot signal the scaling list data.

TABLE 38 Descriptor pic_parameter_set_rbsp( ) { pps_pic_parameter_set_id ue(v) ... ue(v) }

The semantics of the syntax elements included in the PPS syntax of Table38 may be modified like Table 39 below. For example, Table 39 belowillustrates semantics for a syntax element (e.g.,pps_scaling_list_data_present_flag) which may be removed in order toavoid redundant signaling of scaling list data in a PPS syntax.

TABLE 39 pps_scaling_list_data_present_flag equal to 1 specifies thatthe scaling list data used for the pictures referring to the PPS arederived based on the scaling lists specified by the active SPS and thescaling lists specified by the PPS. pps_scaling_list_data_present_flagequal to 0 specifies that the scaling list data used for the picturesreferring to the PPS are inferred to be equal to those specified by theactive SPS. When scaling_list_enabled_flag is equal to 0, the value ofpps_scaling_list_data_present_flag shall be equal to 0. Whenscaling_list_enabled_flag is equal to 1,sps_scaling_list_data_present_flag is equal to 0 andpps_scaling_list_data_present_flag is equal to 0, the default scalinglist data are used to derive the array ScalingFactor as described in thescaling list data semantics as specified in clause 7.4.7.12.

Referring to Table 38 and Table 39 above, thepps_scaling_list_data_present_flag syntax element may not beparsed/signaled in the PPS. That is, by removing thepps_scaling_list_data_present_flag syntax element in the PPS, this flaginformation may be configured not to be parsed/signaled. Thepps_scaling_list_data_present_flag syntax element may be flaginformation for representing whether the syntax structure of the scalinglist data is present in the PPS, and in accordance with this flaginformation, the scaling list data specified by the PPS may beparsed/signaled. However, through removal of thepps_scaling_list_data_present_flag syntax element, the scaling list datamay not be directly signaled at the PPS level.

As described above, by removing the flag information for representingwhether the scaling list data is present at the SPS or PPS level, theSPS syntax and the PPS syntax may be configured so that the scaling listdata syntax is not directly signaled at the SPS or PPS level. The SPSmay explicitly signal the scaling list enabled flag(scaling_list_enabled_flag) only, and thereafter, the lower level syntax(e.g., APS) may individually parse the scaling list (scaling_list_data() based on the enabled flag (scaling_list_enabled_flag) in the SPS.Accordingly, according to an embodiment of the present disclosure, thescaling list data can be parsed/signaled in accordance with thehierarchical structure, and thus the coding efficiency can be furtherimproved.

Further, in signaling the scaling list data in the APS, the APS ID maybe signaled in the slice header, the APS may be identified based on theAPS ID obtained from the slice header, and the scaling list data may beparsed/signaled from the identified APS. Here, the slice header has beenexplained as one example only, and may be interchangeably used with orreplaced by various headers, such as a tile group header or a pictureheader.

For example, the following Table 40 represents an example of a sliceheader syntax including the APS ID syntax element in order to signal thescaling list data in the APS.

TABLE 40 Descriptor slice_header( ) {  slice_pic_parameter_set_id ue(v)...  if( scaling_list_enabled_flag ) {   slice_scaling_list_present_flagu(1)   if(slice_scaling_list_present_flag) {   slice_scaling_list_aps_id u(5)     } } ...  byte_alignment( ) }

The semantics of syntax elements included in the slice header syntax ofTable 40 may be expressed as shown in Table 41 below.

TABLE 41 When present, the value of each of the slice header syntaxelements slice_pic_parameter_set_id, slice_pic_order_cnt_lsb, andslice_temporal_mvp_enabled_flag shall be the same in all slice headersof a coded picture. slice_pic_parameter_set_id specifies the value ofpps_pic_parameter_set_id for the PPS in use. The value ofslice_pic_parameter_set_id shall be in the range of 0 to 63, inclusive.slice_scaling_list_present_flag equal to 1 specifies that scaling listmatrices is present for the current slice.slice_scaling_list_present_flag equal to 0 specifies that the defaultscaling list data are used to derive the array ScalingFactor asdescribed in scaling list data semantics as specified in 7.4.7.12. Whenslice_scaling_list_enabled_flag is not present, it is inferred to beequal to 0. slice_scaling_list_aps_id specifies theadaptation_parameter_set_id of the SCALING DATA APS that the slicerefers to. The TemporalId of the SCALING DATA APS NAL unit havingadaptation_parameter_set_id equal to slice_scaling_list_aps_id shall beless than or equal to the TemporalId of the coded slice NAL unit. Ifslice_scaling_list_aps_id is not present, it is inferred to be 0. Whenmultiple SCALING DATA APSs with the same value ofadaptation_parameter_set_id are referred to by two or more slices of thesame picture, the multiple SCALING DATA APSs with the same value ofadaptation_parameter_set_id shall have the same content.

Referring to Table 40 and Table 41 above, the slice_pic_parameter_set_idsyntax element may be parsed/signaled in the slide header. Theslice_pic_parameter_set_id syntax element may represent an identifierfor the PPS being used. That is, the slice_pic_parameter_set_id syntaxelement may be information for identifying the PPS being referred to bythe corresponding slice, and may represent the value of thepps_pic_parameter_set_id. The value of the slice_pic_parameter_set_idshould be in the range of 0 to 63. The slice_pic_parameter_set_id syntaxelement may be referred to as PPS identification information or PPS IDinformation being referred to by the slice.

Further, the slice_scaling_list_present_flag syntax element may beparsed/signaled in the slice header. The slice_scaling_list_present_flagsyntax element may be information for representing whether the scalinglist matrix is present for the current slice. For example, if the valueof the slice_scaling_list_present_flag is equal to 1, it may representthat the scaling list matrix is present for the current slice, and ifthe value of the slice_scaling_list_present_flag is equal to 0, it mayrepresent that default scaling list data is used to derive a scalingfactor (ScalingFactor) array. Further, if theslice_scaling_list_present_flag is not present in the slice header, thevalue may be inferred to be equal to 0.

In this case, whether to parse the slice_scaling_list_present_flagsyntax element may be determined based on the scaling_list_enabled_flagsyntax element being signaled at the upper level syntax (i.e., SPS). Forexample, if the value of the scaling_list_enabled_flag being signaled inthe SPS is equal to 1 (i.e., if it is determined that the scaling listdata is used at the upper level), the slice_scaling_list_present_flagmay be parsed in the slice header, and it may be determined whether toperform the scaling process using the scaling list in the correspondingslice.

Further, the slice_scaling_list_aps_id syntax element may beparsed/signaled in the slice header. The slice_scaling_list_aps_idsyntax element may represent the identifier for the APS being referredto by the corresponding slice. That is, the slice_scaling_list_aps_idsyntax element may represent the ID information(adaptation_parameter_set_id) of the APS including the scaling list databeing referred to by the corresponding slice. Meanwhile, the TemporalId(i.e., Temporal ID) of the APS NAL unit (i.e., APS NAL unit includingthe scaling list data) having the same APS ID information(adaptation_parameter_set_id) as the slice_scaling_list_aps_id should beequal to or smaller than the TemporalId (i.e., Temporal ID) of the sliceNAL unit being coded.

Further, whether to parse the slice_scaling_list_aps_id syntax elementmay be determined based on the slice_scaling_list_present_flag syntaxelement. For example, if the value of theslice_scaling_list_present_flag is equal to 1 (i.e., if the scaling listis present in the slice header), the slice_scaling_list_aps_id can beparsed. Thereafter, the scaling list data can be obtained from the APSindicated by the parsed slice_scaling_list_aps_id.

Further, in case that a plurality of SCALING DATA APSs (a plurality ofAPSs including the scaling list data) having the APS ID information(adaptation_parameter_set_id) of the same value are referred to by twoor more slices in the same picture, the plurality of SCALING DATA APSshaving the APS ID information (adaptation_parameter_set_id) of the samevalue should include the same contents.

According to Table 40 and Table 41 as described above, although it hasbeen explained that the APS ID is signaled in the slice header, this ismerely one example, and in the present disclosure, the APS ID can besignaled in the picture header or the tile group header.

Further, the present disclosure proposes a general scheme forrepositioning the scaling list data in another header set. As anembodiment, a general structure including the scaling list data in theheader set is proposed. In case of the current VVC, the APS is used asan appropriate header set, but it is also possible to encapsulate thescaling list data identified by the Nal unit type (NUT) in its headerset. It may be implemented as in the following Table 42 and Table 43.

For example, the following Table 42 shows an example representing theNAL unit type and the corresponding RBSP syntax structure. Here, asdescribed above, the NAL unit type may be specified depending on theRBSP data structure included in the corresponding NAL unit, andinformation about the NAL unit type may be signaled to be stored in theNAL unit header.

TABLE 42 Name of NAL unit NalUnitType NalUnitType Content of NAL unitand RBSP syntax structure type class 0 PPS_NUT Picture parameter setnon-VCL pic_parameter_set_rbsp( ) 1 AUD_NUT Access unit delimiternon-VCL access_unit_delimiter_rbsp( ) 2 PREFIX_SEI_NUT Supplementalenhancement information non-VCL 3 SUFFIX_SEI_NUT sei_rbsp( ) 4 APS_NUTAdaptation parameter set non-VCL adaptation_parameter_set_rbsp( ) 6RSV_NVCL65 . . . Reserved non-VCL 5 . . . 7 RSV_NVCL7 8 TRAIL_NUT Codedslice of a non-STSA trailing picture VCL slice_layer_rbsp( ) 9 STSA_NUTCoded slice of an STSA picture VCL slice_layer_rbsp( ) 10 RADL_NUT Codedslice of a RADL picture VCL slice_layer_rbsp( ) 11 RASL_NUT Coded sliceof a RASL picture VCL slice_layer_rbsp( ) 12 . . . 15 RSV_VCL_12 . . .Reserved non-IRAP VCL NAL unit types VCL RSV_VCL_15 16 DPS_NUT Decodingparameter set non-VCL decoding_parameter_set_rbsp( ) 17 SPS_NUT Sequenceparameter set non-VCL seq_parameter_set_rbsp( ) 18 EOS_NUT End ofsequence non-VCL end_of_seq_rbsp( ) 19 EOB_NUT End of bitstream non-VCLend_of_bitstream_rbsp( ) 20 VPS_NUT Video parameter set non-VCLvideo_parameter_set_rbsp( ) 21 SCALING_NUT Scaling_list_data_parameterset non-VCL Scaling_list_data_parameter_set_rbsp( ) 22 . . . 23RSV_NVCL21 . . . Reserved non-VCL RSV_NVCL23 24 IDR_W_RADL Coded sliceof an IDR picture VCL 25 IDR_N_LP slice_layer_rbsp( ) 26 CRA_NUT Codedslice of a CRA picture VCL slice_layer_rbsp( ) 27 GRA_NUT Coded slice ofa gradual random access picture VCL slice_layer_rbsp( ) 28 . . . 31UNSPEC28 . . . Unspecified non-VCL UNSPEC31

As shown in Table 42 above, the scaling list data may be defined as oneNAL unit type (e.g., SCALING_NUT), and as the value of the NAL unit typefor the SCALING_NUT, a specific value (e.g., 21 or one of reservedvalues being not specified as the NAL unit type) may be specified. TheSCALING_NUT may be the type for the NAL unit including the scaling listdata parameter set (e.g., Scaling_list_data_parameter set).

Further, whether the SCALING_NUT is used may be determined at an upperlevel than the APS, PPS, and/or another appropriate header, or may bedetermined at a lower level than another NAL unit type.

For example, the following Table 43 represents syntaxes of a scalinglist data parameter set used for signaling the scaling list data.

TABLE 43 Descriptor scaling_list_data_parameter_set_rbsp( ) { scaling_list_data_parameter_set_id u(5)   scaling_list_data( ) scaling_list_data_extension_flag u(1)  if(scaling_list_data_extension_flag )   while( more_rbsp_data( ) )   scaling_list_data_extension_data_flag u(1)  rbsp_trailing_bits( ) }

The semantics of syntax elements included in the scaling list dataparameter set syntax of Table 43 may be expressed as shown in Table 44below.

TABLE 44 scaling_list_data_parameter_set_id provides an identifier forthe scaling_list_data for reference by other syntax elements. NOTE -scaling_list_data_parameter_sets can be shared across pictures and canbe different in different slices within a picture.scaling_list_data_extension_flag equal to 0 specifies that noaps_extension_data_flag syntax elements are present in thescaling_list_data RBSP syntax structure.scaling_list_data_extension_flag equal to 1 specifies that there arescaling_list_data_extension_data_flag syntax elements present in thescaling_list_data RBSP syntax structure.scaling_list_data_extension_data_flag may have any value. Its presenceand value do not affect decoder conformance to profiles specified inthis version of this Specification. Decoders conforming to this versionof this Specification shall ignore allscaling_list_data_extension_data_flag syntax elements.

Referring to Table 43 and Table 44 above, the scaling list dataparameter set (e.g., scaling_list_data_parameter_set) may be a headerset specified by the value (e.g., 21) of the NAL unit type for theSCALING_NUT. The scaling_list_data_parameter_set id syntax element maybe parsed/signaled in the scaling list data parameter set. Thescaling_list_data_parameter_set id syntax element provides an identifierfor the scaling list data for reference of other syntax elements. Thatis, the scaling list parameter set may be identified based on thescaling_list_data_parameter_set_id syntax element. Thescaling_list_data_parameter_set_id syntax element may be called scalinglist data parameter set ID information. The scaling list data parameterset may be shared between the pictures, and may be different indifferent slices in the picture.

The scaling list data (e.g., scaling_list_data syntax) may beparsed/signaled from the scaling list data parameter set identified bythe scaling_list_data_parameter_set_id.

Further, the scaling_list_data_extension_flag syntax element may beparsed/signaled in the scaling list data parameter set. Thescaling_list_data_extension_flag syntax element may represent whetherthe scaling list data extension flag (scaling_list_data_extension_flag)syntax element is present in the scaling list data RBSP syntaxstructure. For example, if the value of thescaling_list_data_extension_flag is equal to 1, it may be representedthat the scaling list data extension flag(scaling_list_data_extension_flag) syntax element is present in thescaling list data RBSP syntax structure. Further, if the value of thescaling_list_data_extension_flag is equal to 0, it may be representedthat the scaling list data extension flag(scaling_list_data_extension_flag) syntax element is not present in thescaling list data RBSP syntax structure.

The scaling_list_data_extension_data_flag syntax element may beparsed/signaled based on the scaling_list_data_extension_flag syntaxelement. The scaling_list_data_extension_data_flag syntax element may becalled an extension data flag for the scaling list data. For example, ifthe value of the scaling_list_data_extension_flag is equal to 1, thescaling_list_data_extension_data_flag may be parsed/signaled, and inthis case, the scaling_list_data_extension_data_flag may have a randomvalue.

As described above, according to an embodiment of the presentdisclosure, one header set structure for the scaling list data may bedefined and used, and the header set for the scaling list data may bespecified as the NAL unit type (e.g., SCALING_NUT). In this case, theheader set for the scaling list data may be defined as the scaling listdata parameter set (e.g., scaling_list_data_parameter_set), and fromthis, the scaling list data can be obtained.

Meanwhile, the present disclosure proposes a scheme for effectivelycoding the syntax element (scaling_lsit_pred_matrix_id_delta) includedin the scaling list data.

In case of the current VVC, the scaling_lsit_pred_matrix_id_delta syntaxelement is coded using an unsigned integer 0-th order Exp-Golomb-codedsyntax element with the left bit first. However, in order to improve thecoding efficiency, an embodiment of the present disclosure proposes ascheme for coding using a fixed length code (e.g., u(3)) with respect tothe scaling_lsit_pred_matrix_id_delta syntax element having a range of 0to 5 as in the following Table 45. In this case, in order to improveefficiency for the overall range, it may be enough to perform coding byusing only three bits.

For example, the following Table 45 represents an example of a scalinglist data syntax structure.

TABLE 45 Descriptor scaling_list_data( ) {  for( sizeId = 1, sizeId < 7;sizeId++ )   for( matrixId = 0; matrixId < 6; matrixId ++ ) {    if( ! ((( sizeId == 1 ) && ( matrixId % 3 == 0 ) ) ∥ (( sizeId == 6 ) && (matrixId % 3 != 0 ) )) ) {     scaling_list_pred_mode_flag[ sizeId ][matrixId ] u(1)     if( !scaling_list_pred_mode_flag[ sizeId ][ matrixId] )      scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] u(3)    else {      nextCoef = 8      coefNum = Min( 64, ( 1 << ( sizeId <<1 ) ) )      if( sizeId > 3 ) {       scaling_list_dc_coef_minus8[sizeId − 4 ][ matrixId ] se(v)       nextCoef =scaling_list_dc_coef_minus8[ sizeId − 4 ][ matrixId ] + 8      }     for( i = 0; i < coefNum; i++ ) {           x = DiagScanOrder[ 3 ][3 ][ i ][ 0 ]           y = DiagScanOrder[ 3 ][ 3 ][ i ][ 1 ]          if ( !(sizeId==6 && x>=4 && y>=4) ) {        scaling_list_delta_coef se(v)        nextCoef = ( nextCoef +scaling_list_delta_coef + 256 ) % 256        ScalingList[ sizeId ][matrixId ][ i ] = nextCoef          }      }     }    }   }  } }

The semantics of syntax elements included in the scaling list datasyntax of Table 45 may be expressed as shown in Table 46 below.

TABLE 46 scaling_list_pred_mode_flag[ sizeId ][ matrixId ] equal to 0specifies that the values of the scaling list are the same as the valuesof a reference scaling list. The reference scaling list is specified byscaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ].scaling_list_pred_mode_flag[ sizeId ][ matrixId ] equal to 1 specifiesthat the values of the scaling list are explicitly signalled.scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] specifies thereference scaling list used to derive ScalingList[ sizeId ][ matrixId ],the derivation of ScalingList[ sizeId ][ matrixId ] is based onscaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] as follows: - Ifscaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] is equal to 0,the scaling list is inferred from the default scaling list ScalingList[sizeId ][ matrixId ][ i ] as specified in Table 7-15, Table 7-16, Table7-17, Table 7-18 for i = 0..Min( 63, ( 1 << ( sizeId << 1 ) ) − 1 ). -Otherwise, the scaling list is inferred from the reference scaling listas follows: For sizeId =1... 6,  refMatrixId = matrixId − scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ] * ( sizeId = =6 ? 3 : 1 )   If sizeId is equal to 1, the value of refMatrixId shallnot be equal to 0 or 3.  Otherwise, if sizeId is less than or equal to5, the value of  scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ]shall be in the range of 0 to  matrixId, inclusive. Otherwise (sizeId isequal to 6), the value of  scaling_list_pred_matrix_id_delta[ sizeId ][matrixId ] shall be in the range of 0 to matrixId / 3,  inclusive.scaling_list_dc_coef_minus8[ sizeId ][ matrixId ] plus 8 specifies thevalue of the variable ScalingFactor[ 4 ][ matrixId ][ 0 ][ 0 ] for thescaling list for the 16x16 size when sizeId is equal to 4 and specifiesthe value of ScalingFactor[ 5 ][ matrixId ][ 0 ][ 0 ] for the scalinglist for the 32x32 size when sizeId is equal to 5, and specifies thevalue of ScalingFactor[ 6 ][ matrixId ][ 0 ][ 0 ] for the scaling listfor the 64x64 size when sizeId is equal to 6. The value ofscaling_list_dc_coef_minus8[ sizeId ][ matrixId ] shall be in the rangeof −7 to 247, inclusive. When scaling_list_pred_mode_flag[ sizeId ][matrixId ] is equal to 0, scaling_list_pred_matrix_id_(—) delta[ sizeId][ matrixId ] is equal to 0 and sizeId is greater than 3, the value ofscaling_list_dc_coef_minus8[ sizeId ][ matrixId ] is inferred to beequal to 8. When scaling_list_pred_matrix_id_delta[ sizeId ][ matrixId ]is not equal to 0 and sizeId is greater than 3, the value ofscaling_list_dc_coef_minus8[ sizeId ][ matrixId ] is inferred to beequal to scaling_list_dc_coef_minus8[ sizeId ][ refMatrixId ], where thevalue of refMatrixId is given by Equation 7-XX. scaling_list_delta_coefspecifies the difference between the current matrix coefficientScalingList[ sizeId ][ matrixId ][ i ] and the previous matrixcoefficient ScalingList[ sizeId ][ matrixId ][ i − 1 ], whenscaling_list_pred_mode_flag[ sizeId ][ matrixId ] is equal to 1. Thevalue of scaling_list_delta_coef shall be in the range of −128 to 127,inclusive. The value of ScalingList[ sizeId ][ matrixId ][ i ] shall begreater than 0. When scaling_list_pred_mode_flag[ sizeId ][ matrixId ]is equal to 1 and scaling_list_delta_coef is not present, the value ofScalingList[ sizeId ][ matrixId ][ i ] is inferred to be 0.

As shown in Table 45 and Table 46 above, thescaling_list_pred_matrix_id_delta syntax element may be parsed/signaledfrom the scaling list data syntax. The scaling_list_pred_matrix_id_deltasyntax element may represent a reference scaling list used to derive thescaling list. In this case, in parsing thescaling_list_pred_matrix_id_delta, the fixed length code (e.g., u(3))may be used.

Meanwhile, in signaling scaling list data in an APS, restrictions may beimposed on a scaling list matrix. Accordingly, this document proposes amethod of limiting the number of scaling list matrices. According to amethod proposed in this document, effects in that an implementation isfacilitated and the worst case memory requirement is limited can beobtained.

In an embodiment, the number of APSs (i.e., an APS that signals ascaling list data syntax) including scaling list data may be limited. Tothis end, the following constraint condition may be added. Such aconstraint condition is for placing holders. That is, a different valuemay be used. (It should be noted that these constraints are meant toplace holders i.e., different values can be used.)

For convenience of description, an APS including scaling list data(i.e., an APS that signals a scaling list data syntax) may be denoted asSCALING LIST APS. In other words, as described above, if an APSparameter type (e.g., aps_params_type) transmitted in an APS is a type(e.g., SCALING_APS) indicating the scaling list data parameters, scalinglist data transmitted in the APS may be indicated as SCALING LIST APS.

For example, a total number of APSs (i.e., SCALING LIST APS) includingscaling list data may be smaller than 3. Of course, another proper valuemay be used. For example, another proper value may be used within arange of 0 to 7. That is, a total number of APSs (i.e., SCALING LISTAPS) including scaling list data may be determined in a range of 0 to 7.

Furthermore, for example, the APS (i.e., SCALING LIST APS) includingscaling list data may be permitted for only one SCALING LIST APS perpicture.

Table 47 below is an example illustrating a syntax element indicatingthe constraint condition for limiting an APS including scaling list dataand semantics thereof.

TABLE 47 slice_scaling_list_aps_id specifies theadaptation_parameter_set_id of the SCALING LIST APS that the slicerefers to. The value of slice_scaling_list_aps_id shall be in the rangeof 0 to 3, inclusive. The TemporalId of the SCALING_LIST APS NAL unithaving adaptation_parameter_set_id equal to slice_lmcs_aps_id shall beless than or equal to the TemporalId of the coded slice NAL unit. Whenmultiple SCALING LIST APSs with the same value ofadaptation_parameter_set_id are referred to by two or more slices of thesame picture, the multiple SCALING LIST APSs with the same value ofadaptation_parameter_set_id shall have the same content. Only oneSCALING LIST APS with the same value of adaptation_parameter_set_id andthe same content shall be referred to by one or more slices of the samepicture.

Referring to Table 47, the number of APSs (i.e., SCALING LIST APS)including scaling list data may be limited based on a syntax element(e.g., slice_scaling_list_aps_id) indicating APS ID information (i.e.,APS ID information) of SCALING LIST APS.

For example, the syntax element (slice_scaling_list_aps_id) may indicateAPS ID information (i.e., APS ID information) of SCALING LIST APSreferred by a slice. In this case, a value of the syntax element(slice_scaling_list_aps_id) may be limited to a specific value. Forexample, a value of the syntax element (slice_scaling_list_aps_id) maybe limited to be in a range of 0 to 3. This is merely an example, andmay be limited to have another value. For another example, a value ofthe syntax element (slice_scaling_list_aps_id) may be limited to be in arange of 0 to 7.

Furthermore, for example, TemporalId (i.e., Temporal ID) of a SCALINGLIST APS NAL unit having an APS ID (adaptation_parameter_set_id), suchas slice_lmcs_aps_id, needs to be smaller than or equal to TemporalId(i.e., Temporal ID) of a coded slice NAL unit.

Furthermore, for example, if a plurality of the same SCALING LIST APSshaving the same APS ID (adaptation_parameter_set_id) value is referredby two slices on the same picture, the plurality of SCALING LIST APSshaving the same APS ID (adaptation_parameter_set_id) value needs to havethe same contents.

Furthermore, for example, only one SCALING LIST APS having the same APSID (adaptation_parameter_set_id) value and the same contents needs to bereferred by one or more slices on the same picture. In other words, theone or more slices within the same picture need to refer to the same APSincluding scaling list data.

The following drawings have been written in order to describe detailedexamples of this document. The name of a detailed apparatus or the nameof a detailed term (e.g., the name of a syntax/syntax element) writtenin the drawings has been illustratively proposed, and technicalcharacteristics of this document are not limited by a detailed name usedin the following drawings.

FIGS. 7 and 8 schematically illustrate examples of a video/imageencoding method and related components according to an embodiment(s) ofthis document.

The method disclosed in FIG. 7 may be performed by the encodingapparatus 200 disclosed in FIG. 2. Specifically, step S700 in FIG. 7 maybe performed by the subtractor 231 disclosed in FIG. 2. Step S710 inFIG. 7 may be performed by the transformer 232 disclosed in FIG. 2.Steps S720 to S730 in FIG. 7 may be performed by the quantizer 233disclosed in FIG. 2. Step S740 in FIG. 7 may be performed by the entropyencoder 240 disclosed in FIG. 2. Furthermore, the method disclosed inFIG. 7 may be performed by including the embodiments described in thisdocument. Accordingly, a detailed description of contents redundant withthe aforementioned embodiments in FIG. 7 is omitted or simply given.

Referring to FIG. 7, the encoding apparatus may derive residual samplesfor a current block (S700).

In an embodiment, first, the encoding apparatus may determine aprediction mode for the current block and derive prediction samples. Forexample, the encoding apparatus may determine whether to perform interprediction or intra prediction on the current block, and may determine adetailed inter prediction mode or a detailed intra prediction mode basedon RD costs. The encoding apparatus may derive the prediction samplesfor the current block by performing prediction based on the determinedprediction mode. In this case, various prediction methods disclosed inthis document, such as inter prediction or intra prediction, may beapplied. Furthermore, the encoding apparatus may generate and encodeinformation (e.g., prediction mode information) related to theprediction applied to the current block. Furthermore, the encodingapparatus may derive residual samples by comparing original samples andthe prediction samples for the current block.

The encoding apparatus may derive transform coefficients based on theresidual samples (S710).

In an embodiment, the encoding apparatus may derive the transformcoefficients through a transform process for the residual samples. Inthis case, the encoding apparatus may determine whether to apply atransform on the current block by considering coding efficiency. Thatis, the encoding apparatus may determine whether a transform is appliedto the residual samples. For example, if the transform is not applied tothe residual samples, the encoding apparatus may derive the residualsamples as the transform coefficients. Alternatively, if the transformis applied to the residual samples, the encoding apparatus may derivethe transform coefficients by performing the transform on the residualsamples. In this case, the encoding apparatus may generate and encodetransform skip flag information based on whether the transform isapplied to the current block. The transform skip flag information may beinformation indicating whether a transform is applied to the currentblock or a transform is skipped.

The encoding apparatus may derive quantized transform coefficients basedon the transform coefficients (S720).

In an embodiment, the encoding apparatus may derive the quantizedtransform coefficients by applying a quantization process for thetransform coefficients. In this case, the encoding apparatus may applyfrequency weighting quantization that adjusts quantization intensitydepending on a frequency. In this case, the quantization process may befurther performed based on a frequency-specific quantization scalevalue. The quantization scaling value for frequency weightingquantization may be derived using a scaling matrix. For example, theencoding apparatus/decoding apparatus may use a predefined scalingmatrix. The encoding apparatus may construct and encode thefrequency-specific quantization scaling information for a scalingmatrix, and may signal the frequency-specific quantization scalinginformation to the decoding apparatus. The frequency-specificquantization scaling information may include scaling list data. A(modified) scaling matrix may be derived based on the scaling list data.

Furthermore, the encoding apparatus may perform a dequantization processin the same way as the decoding apparatus. In this case, the encodingapparatus may derive a (modified) scaling matrix based on the scalinglist data, and may derive reconstructed transform coefficients byapplying dequantization to the quantized transform coefficients based onthe (modified) scaling matrix. In this case, the reconstructed transformcoefficients may be different from the initial transform coefficientsdue to a loss in the transform/quantization process.

In this case, the scaling matrix may denote the aforementionedfrequency-based quantization scaling matrix, and may be interchangeablyor alternately used with a quantization scaling matrix, a quantizationmatrix, a scaling matrix, or a scaling list for convenience ofdescription, and is not limited to a detailed name used in the presentembodiment.

That is, the encoding apparatus may further apply frequency weightingquantization in performing the quantization process. In this case,scaling list data may be generated as information for a scaling matrix.The process has been described in detail by taking Table 5 to Table 17as examples, and thus in the present embodiment, redundant contents or adetailed description is omitted.

The encoding apparatus may generate residual information based on thequantized transform coefficients (S730).

In this case, the residual information is information generated throughthe transform and/or quantization procedure, and may be informationabout the quantized transform coefficients. For example, the residualinformation may include information, such as value information, positioninformation, a transform scheme, a transform kernel, or a quantizationparameter of the quantized transform coefficients.

Furthermore, if the frequency weighting quantization is further appliedin deriving the quantized transform coefficients in the quantizationprocess, scaling list data for the quantized transform coefficients maybe further generated. The scaling list data may include scaling listparameters used to derive the quantized transform coefficients. In thiscase, the encoding apparatus may generate scaling list data-relatedinformation, and may generate an APS including scaling list data, forexample.

The encoding apparatus may encode image information (or videoinformation) (S740). In this case, the image information may include theresidual information. Furthermore, the image information may includeinformation (e.g., prediction mode information) related to theprediction used to derive the prediction samples. Furthermore, the imageinformation may include information on the scaling list data. That is,the image information may include various types of information derivedin an encoding process, and may be encoded by including the varioustypes of information.

In an embodiment, the image information may include various types ofinformation according to the aforementioned embodiment(s) of thisdocument, and may include the information disclosed in at least one ofTables 1 to 47.

For example, the image information may include an adaptation parameterset (APS). The APS may include APS ID information and APS typeinformation (type information of APS parameters). That is, the APS maybe identified based on the APS ID information, and APS parameterscorresponding to a corresponding type may be included in the APS basedon the APS type information. For example, the APS type information mayinclude an ALF type for adaptive loop filter (ALF) parameters, an LMCStype for luma mapping with chroma scaling (LMCS) parameters, and ascaling list type for scaling list data parameters, and may beillustrated as in Table 35. For example, when a value of the APS typeinformation is 2, this may indicate that the APS type information is anAPS including scaling list data parameters.

For example, the APS may be constructed like Table 33 (or Table 18). TheAPS ID information may be adaptation_parameter_set_id described in Table33 and Table 34 (or Table 18 and Table 19). The APS type information maybe aps_params_type described in Table 33 to Table 35 (or Table 18 toTable 20). For example, if the type information of APS parameters (e.g.,aps_params_type) is a SCALING_APS type related to indicating an APSincluding scaling list data (or when a value of type information (e.g.,aps_params_type) of APS parameters is 2), the APS may include scalinglist data (e.g., scaling_list_data( ). That is, the encoding apparatusmay signal the scaling list data (e.g., scaling_list_data( ) through theAPS based on SCALING_APS type information related to indicating an APSincluding the scaling list data. That is, the scaling list data may beincluded in the APS based on the APS type information (SCALING_APS typeinformation). The scaling list data, as described above, may includescaling list parameters for deriving a scaling list/scaling matrix/scalefactor used in the quantization/dequantization process. In other words,the scaling list data may include syntax elements used to construct ascaling list.

Furthermore, for example, the APS ID information may have a value withina specific range. For example, a value of the APS ID information mayhave a value within a specific range from 0 to 3 or from 0 to 7. Thishas been merely described as an example, and the range of a value of theAPS ID information may have different values. Furthermore, the range ofa value of the APS ID information may be determined based on the APStype information (e.g., aps_params_type). If APS type informationindicates an APS for scaling list data (e.g., SCALING_APS type), a valueof APS ID information may be indicated based on a syntax element (e.g.,slice_scaling_list_aps_id), such as that in Table 47. For example, ifAPS type information (e.g., aps_params_type) indicates an APS includingscaling list data (e.g., in the case of the SCALING_APS type), a valueof APS ID information may have a value within a range from 0 to 3 or 0to 7. In this case, slices within one picture may refer to the same APSfor scaling list data. Alternatively, if APS type information (e.g.,aps_params_type) indicates an APS for an ALF (e.g., in the case of anALF_APS type), a value of APS ID information may have a value within arange from 0 to 7. Alternatively, if APS type information (e.g.,aps_params_type) indicates an APS for LMCS (e.g., in the case of anLMCS_APS type), a value of APS ID information may have a value within arange from 0 to 3.

Furthermore, for example, the image information may include a sequenceparameter set (SPS). The SPS may include first enabled flag informationrelated to indicating whether scaling list data is used. For example,the SPS may be constructed like Table 36 (or Table 21). The firstenabled flag information may be scaling_list_enabled_flag described inTable 36 and Table 37 (or Table 21 and Table 22). Furthermore, asps_scaling_list_data_present_flag syntax element may be removed fromthe SPS so that flag information is not parsed/signaled. Thesps_scaling_list_data_present_flag syntax element may be informationrelated to indicating whether a syntax structure of scaling list data ispresent in the SPS. Scaling list data designated by the SPS may beparsed/signaled based on the flag information. However, thesps_scaling_list_data_present_flag syntax element may be removed, andthus the SPS may be constructed to not directly signal the scaling listdata and to explicitly signal only a scaling list-enabled flag(scaling_list_enabled_flag) in an SPS level.

Furthermore, for example, the image information may include a pictureparameter set (PPS). For example, the PPS may be constructed like Table38. In this case, the PPS may be constructed to not include enabled flaginformation related to indicating whether scaling list data is used.That is, the PPS may be constructed so that the flag information is notparsed/signaled by removing a pps_scaling_list_data_present_flag syntaxelement from the PPS. The pps_scaling_list_data_present_flag syntaxelement is flag information related to indicating whether a syntaxstructure of scaling list data is present in the PPS. Scaling list datadesignated by the PPS may be parsed/signaled based on the flaginformation. However, by removing the pps_scaling_list_data_present_flagsyntax element, the scaling list data may not be directly signaled in aPPS level.

In this case, first enabled flag information (e.g.,scaling_list_enabled_flag) related to indicating whether the scalinglist data is used may be signaled in an SPS and may not be signaled in aPPS. Accordingly, scaling list data included in the APS may be obtainedbased on the first enabled flag information signaled in the SPS (e.g.,when a value of the first enabled flag information (e.g.,scaling_list_enabled_flag) is 1 or true).

Furthermore, for example, the image information may include headerinformation. The header information may be header information related toa slice or picture including a current block, and may include a pictureheader or a slice header, for example. The header information mayinclude scaling list data-related APS ID information. The scaling listdata-related APS ID information included in the header information mayindicate APS ID information for an APS including scaling list data. Forexample, the scaling list data-related APS ID information included inthe header information may be slice_scaling_list_aps_id described inTable 40 to Table 41 (or Table 25 to Table 28), and may be IDinformation for an APS (including scaling list data, that is, SCALINGLIST APS) referred by a slice/picture including a current block. Thatis, an APS including scaling list data may be identified based onscaling list data-related APS ID information (e.g.,slice_scaling_list_aps_id) of the header information.

In this case, whether the header information parses/signals APS IDinformation for an APS including scaling list data may be determinedbased on the first enabled flag information (scaling_list_enabled_flag)parsed/signaled in the SPS. For example, the header information mayinclude APS ID information for an APS including scaling list data basedon the first enabled flag information related to indicating that ascaling list in an SPS is used (e.g., when a value of the first enabledflag information (e.g., scaling_list_enabled_flag) is 1 or true).

Furthermore, for example, the header information may include secondenabled flag information related to indicating whether scaling list datain a picture or slice is used. For example, the second enabled flaginformation may be slice_scaling_list_present_flag (orslice_scaling_list_enabled_flag) described in Table 40 and Table 41 (orTable 25 to Table 28).

In this case, whether the header information parses/signals the secondenabled flag information may be determined based on the first enabledflag information (scaling_list_enabled_flag) parsed/signaled in the SPS.For example, the header information may include the second enabled flaginformation based on the first enabled flag information related toindicating that a scaling list in the SPS is used (e.g., when a value ofthe first enabled flag information (e.g., scaling_list_enabled_flag) is1 or true). Furthermore, the header information may include APS IDinformation for an APS including scaling list data based on the secondenabled flag information (e.g., when a value of the second enabled flaginformation (e.g., slice_scaling_list_present_flag) is 1 or true).

For example, the encoding apparatus may signal the second enabled flaginformation (e.g., slice_scaling_list_present_flag) through the headerinformation based on the first enabled flag information (e.g.,scaling_list_enabled_flag) signaled in the SPS as in Table 40, and maythen signal the APS ID information (e.g., slice_scaling_list_aps_id) forthe APS including scaling list data through the header information basedon the second enabled flag information (e.g.,slice_scaling_list_present_flag). Furthermore, the encoding apparatusmay signal scaling list data from an APS indicated by the signaled APSID information (e.g., slice_scaling_list_aps_id).

As described above, an SPS syntax and a PPS syntax may be constructed sothat scaling list data syntax is not directly signaled in an SPS or PPSlevel. For example, only a scaling list-enabled flag(scaling_list_enabled_flag) may be explicitly signaled in an SPS.Thereafter, scaling list (scaling_list_data( ) may be individuallyparsed in a lower level syntax (e.g., an APS) based on an enabled flag(scaling_list_enabled_flag) in the SPS. Accordingly, according to anembodiment of this document, coding efficiency can be further improvedbecause scaling list data can be parsed/signaled depending on ahierarchical structure.

The image information including the aforementioned various types ofinformation may be encoded and outputted in the form of a bitstream. Thebitstream may be transmitted to the decoding apparatus over a network orthrough a (digital) storage medium. In this case, the network mayinclude a broadcasting network and/or a communication network, and thedigital storage medium may include various storage media, such as a USB,an SD, a CD, a DVD, Blueray, an HDD, and an SSD.

FIGS. 9 and 10 schematically illustrate examples of a video/imagedecoding method and related components according to an embodiment(s) ofthis document.

The method disclosed in FIG. 9 may be performed by the decodingapparatus 300 disclosed in FIG. 3. Specifically, steps S900 to S910 inFIG. 9 may be performed by the entropy decoder 310 disclosed in FIG. 3.Step S920 in FIG. 9 may be performed by the dequantizer 321 disclosed inFIG. 3. Step S930 in FIG. 9 may be performed by the inverse transformer322 disclosed in FIG. 3. Step S940 in FIG. 9 may be performed by theadder 340 disclosed in FIG. 3. Furthermore, the method disclosed in FIG.9 may be performed by including the embodiments described in thisdocument. Accordingly, a detailed description of contents redundant withthe aforementioned embodiments in FIG. 9 is omitted or simply given.

Referring to FIG. 9, the decoding apparatus may receive imageinformation (or video information) from a bitstream (S900).

In an embodiment, the decoding apparatus may derive information (e.g.,video/image information) necessary for an image reconstruction (orpicture reconstruction) by parsing the bitstream. In this case, theimage information may include residual information. The residualinformation may include information, such as value information, positioninformation, a transform scheme, a transform kernel, or a quantizationparameter of quantized transform coefficients. Furthermore, the imageinformation may include information (e.g., prediction mode information)related to prediction. Furthermore, the image information may includeinformation on scaling list data. That is, the image information mayinclude various types of information necessary for a decoding process,and may be decoded based on based on a coding method, such as indexGolomb encoding, CAVLC or CABAC.

In an embodiment, the image information may include various types ofinformation according to the aforementioned embodiment(s) of thisdocument, and may include information disclosed in at least one ofTables 1 to 47.

For example, the image information may include an adaptation parameterset (APS). The APS may include APS ID information and APS typeinformation (type information of APS parameters). That is, the APS maybe identified based on the APS ID information, and APS parameterscorresponding to a corresponding type may be included in the APS basedon the APS type information. For example, the APS type information mayinclude an ALF type for adaptive loop filter (ALF) parameters, an LMCStype for luma mapping with chroma scaling (LMCS) parameters, and ascaling list type for scaling list data parameters, and may beillustrated as in Table 35. For example, when a value of the APS typeinformation is 2, this may indicate that the APS type information is anAPS including scaling list data parameters.

For example, the APS may be constructed like Table 33 (or Table 18). TheAPS ID information may be adaptation_parameter_set_id described in Table33 and Table 34 (or Table 18 and Table 19). The APS type information maybe aps_params_type described in Table 33 to Table 35 (or Table 18 toTable 20). For example, if the type information of APS parameters (e.g.,aps_params_type) is a SCALING_APS type related to indicating an APSincluding scaling list data (or when a value of type information (e.g.,aps_params_type) of APS parameters is 2), the APS may include scalinglist data (e.g., scaling_list_data( ). That is, the decoding apparatusmay obtain and parse the scaling list data (e.g., scaling_list_data( )through the APS based on SCALING_APS type information related toindicating an APS including the scaling list data. That is, the scalinglist data may be included in the APS based on the APS type information(SCALING_APS type information). The scaling list data, as describedabove, may include scaling list parameters for deriving a scalinglist/scaling matrix/scale factor used in the quantization/dequantizationprocess. In other words, the scaling list data may include syntaxelements used to construct a scaling list.

Furthermore, for example, the APS ID information may have a value withina specific range. For example, a value of the APS ID information mayhave a value within a specific range from 0 to 3 or from 0 to 7. Thishas been merely described as an example, and the range of a value of theAPS ID information may have different values. Furthermore, the range ofa value of the APS ID information may be determined based on the APStype information (e.g., aps_params_type). If APS type informationindicates an APS for scaling list data (e.g., SCALING_APS type), a valueof APS ID information may be indicated based on a syntax element (e.g.,slice_scaling_list_aps_id), such as that in Table 47. For example, ifAPS type information (e.g., aps_params_type) indicates an APS includingscaling list data (e.g., in the case of the SCALING_APS type), a valueof APS ID information may have a value within a range from 0 to 3 or 0to 7. In this case, slices within one picture may refer to the same APSfor scaling list data. Alternatively, if APS type information (e.g.,aps_params_type) indicates an APS for an ALF (e.g., in the case of anALF_APS type), a value of APS ID information may have a value within arange from 0 to 7. Alternatively, if APS type information (e.g.,aps_params_type) indicates an APS for LMCS (e.g., in the case of anLMCS_APS type), a value of APS ID information may have a value within arange from 0 to 3.

Furthermore, for example, the image information may include a sequenceparameter set (SPS). The SPS may include first enabled flag informationrelated to indicating whether scaling list data is used. For example,the SPS may be constructed like Table 36 (or Table 21). The firstenabled flag information may be scaling_list_enabled_flag described inTable 36 and Table 37 (or Table 21 and Table 22). Furthermore, asps_scaling_list_data_present_flag syntax element may be removed fromthe SPS so that flag information is not parsed/signaled. Thesps_scaling_list_data_present_flag syntax element may be informationrelated to indicating whether a syntax structure of scaling list data ispresent in the SPS. Scaling list data designated by the SPS may beparsed/signaled based on the flag information. However, thesps_scaling_list_data_present_flag syntax element may be removed, andthus the SPS may be constructed to not directly signal the scaling listdata and to explicitly signal only a scaling list-enabled flag(scaling_list_enabled_flag) in an SPS level.

Furthermore, for example, the image information may include a pictureparameter set (PPS). For example, the PPS may be constructed like Table38. In this case, the PPS may be constructed to not include enabled flaginformation related to indicating whether scaling list data is used.That is, the PPS may be constructed so that the flag information is notparsed/signaled by removing a pps_scaling_list_data_present_flag syntaxelement from the PPS. The pps_scaling_list_data_present_flag syntaxelement is flag information related to indicating whether a syntaxstructure of scaling list data is present in the PPS. Scaling list datadesignated by the PPS may be parsed/signaled based on the flaginformation. However, by removing the pps_scaling_list_data_present_flagsyntax element, the scaling list data may not be directly signaled in aPPS level.

In this case, first enabled flag information (e.g.,scaling_list_enabled_flag) related to indicating whether the scalinglist data is used may be signaled in an SPS and may not be signaled in aPPS. Accordingly, scaling list data included in the APS may be obtainedbased on the first enabled flag information signaled in the SPS (e.g.,when a value of the first enabled flag information (e.g.,scaling_list_enabled_flag) is 1 or true).

Furthermore, for example, the image information may include headerinformation. The header information may be header information related toa slice or picture including a current block, and may include a pictureheader or a slice header, for example. The header information mayinclude scaling list data-related APS ID information. The scaling listdata-related APS ID information included in the header information mayindicate APS ID information for an APS including scaling list data. Forexample, the scaling list data-related APS ID information included inthe header information may be slice_scaling_list_aps_id described inTable 40 to Table 41 (or Table 25 to Table 28), and may be IDinformation for an APS (including scaling list data, that is, SCALINGLIST APS) referred by a slice/picture including a current block. Thatis, an APS including scaling list data may be identified based onscaling list data-related APS ID information (e.g.,slice_scaling_list_aps_id) of the header information. That is, thedecoding apparatus may identify an APS based on the APS ID information(e.g., slice_scaling_list_aps_id) of the header information, and mayobtain scaling list data from the APS.

In this case, whether the header information parses/signals APS IDinformation for an APS including scaling list data may be determinedbased on the first enabled flag information (scaling_list_enabled_flag)parsed/signaled in the SPS. For example, the header information mayinclude APS ID information for an APS including scaling list data basedon the first enabled flag information related to indicating that ascaling list in an SPS is used (e.g., when a value of the first enabledflag information (e.g., scaling_list_enabled_flag) is 1 or true).

Furthermore, for example, the header information may include secondenabled flag information related to indicating whether scaling list datain a picture or slice is used. For example, the second enabled flaginformation may be slice_scaling_list_present_flag (orslice_scaling_list_enabled_flag) described in Table 40 and Table 41 (orTable 25 to Table 28).

In this case, whether the header information parses/signals the secondenabled flag information may be determined based on the first enabledflag information (scaling_list_enabled_flag) parsed/signaled in the SPS.For example, the header information may include the second enabled flaginformation based on the first enabled flag information related toindicating that a scaling list in the SPS is used (e.g., when a value ofthe first enabled flag information (e.g., scaling_list_enabled_flag) is1 or true). Furthermore, the header information may include APS IDinformation for an APS including scaling list data based on the secondenabled flag information (e.g., when a value of the second enabled flaginformation (e.g., slice_scaling_list_present_flag) is 1 or true).

For example, the decoding apparatus may obtain the second enabled flaginformation (e.g., slice_scaling_list_present_flag) through the headerinformation based on the first enabled flag information (e.g.,scaling_list_enabled_flag) signaled in the SPS as in Table 40 (or Table25), and may then obtain the APS ID information (e.g.,slice_scaling_list_aps_id) for the APS including scaling list datathrough the header information based on the second enabled flaginformation (e.g., slice_scaling_list_present_flag). Furthermore, thedecoding apparatus may obtain scaling list data from an APS indicated bythe APS ID information (e.g., slice_scaling_list_aps_id) obtainedthrough the header information.

As described above, an SPS syntax and a PPS syntax may be constructed sothat scaling list data syntax is not directly signaled in an SPS or PPSlevel. For example, only a scaling list-enabled flag(scaling_list_enabled_flag) may be explicitly signaled in an SPS.Thereafter, scaling list (scaling_list_data( ) may be individuallyparsed in a lower level syntax (e.g., an APS) based on an enabled flag(scaling_list_enabled_flag) in the SPS. Accordingly, according to anembodiment of this document, coding efficiency can be further improvedbecause scaling list data can be parsed/signaled depending on ahierarchical structure.

The decoding apparatus may derive quantized transform coefficients forthe current block based on the residual information (S910).

In an embodiment, the decoding apparatus may obtain the residualinformation included in the image information. The residual information,as described above, may include information, such as value information,position information, a transform scheme, a transform kernel, aquantization parameter of quantized transform coefficients. The decodingapparatus may derive the quantized transform coefficients for thecurrent block based on the quantized transform coefficient informationincluded in the residual information.

The decoding apparatus may derive the transform coefficients based onthe quantized transform coefficients (S920).

In an embodiment, the decoding apparatus may derive the transformcoefficients by applying a dequantization process for the quantizedtransform coefficients. In this case, the decoding apparatus may applyfrequency weighting quantization that adjusts quantization intensitydepending on a frequency. In this case, the dequantization process maybe further performed based on a frequency-specific quantization scalevalue. The quantization scaling value for frequency weightingquantization may be derived using a scaling matrix. For example, thedecoding apparatus may use a predefined scaling matrix, and may use thefrequency-specific quantization scaling information for a scaling matrixsignaled by the encoding apparatus. The frequency-specific quantizationscaling information may include scaling list data. A (modified) scalingmatrix may be derived based on the scaling list data.

That is, the decoding apparatus may further apply the frequencyweighting quantization in performing the dequantization process. In thiscase, the decoding apparatus may derive the transform coefficients byapplying the dequantization process for the quantized transformcoefficients based on the scaling list data.

In an embodiment, the decoding apparatus may obtain an APS included inthe image information, and may obtain the scaling list data based on APStype information included in the APS. For example, the decodingapparatus may obtain the scaling list data included in the APS, based onSCALING_APS type information related to indicating the APS including thescaling list data. In this case, the decoding apparatus may derive ascaling matrix based on the scaling list data, and may derive a scalingfactor based on the scaling matrix, and may derive transformcoefficients by applying dequantization based on the scaling factor.Such a process of performing scaling based on the scaling list data hasbeen described in detail by taking Table 5 to Table 17 as examples, andthus in the present embodiment, redundant contents or a detaileddescription is omitted.

Furthermore, the decoding apparatus may determine whether to applyfrequency weighting quantization (i.e., whether to derive the transformcoefficients by using a scaling list in the dequantization process(frequency-based quantization)) in the dequantization process. Forexample, the decoding apparatus may determine whether to use the scalinglist data, based on the first enabled flag obtained from the SPSincluded in the image information and/or the second enabled flaginformation obtained from the header information included in the imageinformation. If it is determined that the scaling list data is usedbased on the first enabled flag and/or second enabled flag information,the decoding apparatus may obtain APS ID information for an APSincluding scaling list data through the header information, may identifya corresponding APS based on the APS ID information, and may obtain thescaling list data from the identified APS.

The decoding apparatus may derive residual samples based on thetransform coefficients (S930).

In an embodiment, the decoding apparatus may derive residual samples ofthe current block by performing an inverse transform on transformcoefficients for the current block. In this case, the decoding apparatusmay obtain information (i.e., transform skip flag information)indicating whether to apply an inverse transform to the current block,and may derive the residual samples based on the information (i.e.,transform skip flag information).

For example, if the inverse transform is not applied to the transformcoefficients (when a value of transform skip flag information for thecurrent block is 1), the decoding apparatus may derive the transformcoefficients as the residual samples of the current block.Alternatively, if the inverse transform is applied to the transformcoefficients (when a value of transform skip flag information for thecurrent block is 0), the decoding apparatus may derive the residualsamples of the current block by performing the inverse transform on thetransform coefficients.

The decoding apparatus may generate reconstructed samples based on theresidual samples (S940).

In an embodiment, the decoding apparatus may determine whether toperform inter prediction or intra prediction on the current block basedon prediction information (e.g., prediction mode information) includedin the image information, and may derive prediction samples for thecurrent block by performing prediction based on the determination.Furthermore, the decoding apparatus may generate the reconstructedsamples based on the prediction samples and the residual samples. Inthis case, the decoding apparatus may directly use the predictionsamples as the reconstructed samples depending on a prediction mode, ormay generate the reconstructed samples by adding the residual samples tothe prediction samples. Furthermore, the decoding apparatus may derive areconstructed block or a reconstructed picture based on thereconstructed samples. Thereafter, as described above, the decodingapparatus may apply an in-loop filtering procedure, such as deblockingfiltering and/or SAO procedure, to the reconstructed picture in order toimprove subjective/objective picture quality, if necessary.

In the above-described embodiments, the methods are explained on thebasis of flowcharts by means of a series of steps or blocks, but thepresent disclosure is not limited to the order of steps, and a certainstep may be performed in order or step different from that describedabove, or concurrently with another step. Further, it may be understoodby a person having ordinary skill in the art that the steps shown in aflowchart are not exclusive, and that another step may be incorporatedor one or more steps of the flowchart may be removed without affectingthe scope of the present disclosure.

The above-described methods according to the present disclosure may beimplemented as a software form, and an encoding apparatus and/ordecoding apparatus according to the disclosure may be included in adevice for image processing, such as, a TV, a computer, a smartphone, aset-top box, a display device or the like.

When embodiments in the present disclosure are embodied by software, theabove-described methods may be embodied as modules (processes, functionsor the like) to perform the above-described functions. The modules maybe stored in a memory and may be executed by a processor. The memory maybe inside or outside the processor and may be connected to the processorin various well-known manners. The processor may include anapplication-specific integrated circuit (ASIC), other chipset, logiccircuit, and/or a data processing device. The memory may include aread-only memory (ROM), a random access memory (RAM), a flash memory, amemory card, a storage medium, and/or other storage device. That is,embodiments described in the present disclosure may be embodied andperformed on a processor, a microprocessor, a controller or a chip. Forexample, function units shown in each drawing may be embodied andperformed on a computer, a processor, a microprocessor, a controller ora chip. In this case, information for implementation (e.g., informationon instructions) or an algorithm may be stored in a digital storagemedium.

Furthermore, the decoding apparatus and the encoding apparatus to whichthis document is applied may be included in a multimedia broadcastingtransmission and reception device, a mobile communication terminal, ahome cinema video device, a digital cinema video device, a camera formonitoring, a video dialogue device, a real-time communication devicesuch as video communication, a mobile streaming device, a storagemedium, a camcorder, a video on-demand (VoD) service provision device,an over the top (OTT) video device, an Internet streaming serviceprovision device, a three-dimensional (3D) video device, a virtualreality (VR) device, an augmented reality (AR) device, a video telephonydevice, transportation means terminal (e.g., a vehicle (includingautonomous vehicle) terminal, an aircraft terminal, and a vesselterminal), and a medical video device, and may be used to process avideo signal or a data signal. For example, the over the top (OTT) videodevice may include a game console, a Blueray player, Internet access TV,a home theater system, a smartphone, a tablet PC, and a digital videorecorder (DVR).

Furthermore, the processing method to which this document is applied maybe produced in the form of a program executed by a computer, and may bestored in a computer-readable recording medium. Multimedia data having adata structure according to this document may also be stored in acomputer-readable recording medium. The computer-readable recordingmedium includes all types of storage devices in which computer-readabledata is stored. The computer-readable recording medium may includeBlueray disk (BD), a universal serial bus (USB), a ROM, a PROM, anEPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, andan optical data storage device, for example. Furthermore, thecomputer-readable recording medium includes media implemented in theform of carriers (e.g., transmission through the Internet). Furthermore,a bit stream generated using an encoding method may be stored in acomputer-readable recording medium or may be transmitted over wired andwireless communication networks.

Furthermore, an embodiment of this document may be implemented as acomputer program product using program code. The program code may beperformed by a computer according to an embodiment of this document. Theprogram code may be stored on a carrier readable by a computer.

FIG. 11 illustrates an example of a content streaming system to whichembodiments disclosed in this document may be applied.

Referring to FIG. 11, the content streaming system to which theembodiments of the present document are applied may basically include anencoding server, a streaming server, a web server, a media storage, auser device, and a multimedia input device.

The encoding server compresses content input from multimedia inputdevices such as a smartphone, a camera, a camcorder, etc. into digitaldata to generate a bitstream and transmit the bitstream to the streamingserver. As another example, when the multimedia input devices such assmartphones, cameras, camcorders, etc. directly generate a bitstream,the encoding server may be omitted.

The bitstream may be generated by an encoding method or a bitstreamgenerating method to which the embodiment(s) of the present document isapplied, and the streaming server may temporarily store the bitstream inthe process of transmitting or receiving the bitstream.

The streaming server transmits the multimedia data to the user devicebased on a user's request through the web server, and the web serverserves as a medium for informing the user of a service. When the userrequests a desired service from the web server, the web server deliversit to a streaming server, and the streaming server transmits multimediadata to the user. In this case, the content streaming system may includea separate control server. In this case, the control server serves tocontrol a command/response between devices in the content streamingsystem.

The streaming server may receive content from a media storage and/or anencoding server. For example, when the content is received from theencoding server, the content may be received in real time. In this case,in order to provide a smooth streaming service, the streaming server maystore the bitstream for a predetermined time.

Examples of the user device may include a mobile phone, a smartphone, alaptop computer, a digital broadcasting terminal, a personal digitalassistant (PDA), a portable multimedia player (PMP), navigation, a slatePC, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smartglasses, head mounted displays), digital TVs, desktops computer, digitalsignage, and the like.

Each server in the content streaming system may be operated as adistributed server, in which case data received from each server may bedistributed.

The claims described herein may be combined in various ways. Forexample, the technical features of the method claims of the presentspecification may be combined and implemented as an apparatus, and thetechnical features of the apparatus claims of the present specificationmay be combined and implemented as a method. In addition, the technicalfeatures of the method claims of the present specification and thetechnical features of the apparatus claims may be combined to beimplemented as an apparatus, and the technical features of the methodclaims and the technical features of the apparatus claims of the presentspecification may be combined and implemented as a method.

What is claimed is:
 1. An image decoding method performed by a decodingapparatus, the method comprising: obtaining image information includingresidual information from a bitstream; deriving quantized transformcoefficients for a current block based on the residual information;deriving transform coefficients based on the quantized transformcoefficients; deriving residual samples based on the transformcoefficients; and generating reconstruction samples based on theresidual samples, wherein the image information includes an adaptationparameter set (APS) including scaling list data, and wherein the APSincludes APS ID information and APS type information, and wherein theAPS is identified based on the APS ID information, and wherein the APSincludes the scaling list data based on the APS type information, andwherein the APS ID information has a value within a specific range basedon the APS type information, and wherein the APS type informationspecifies that the APS is APS for the scaling list data.
 2. The imagedecoding method of claim 1, wherein a value of the APS ID informationhas a value within a specific range from 0 to 3 or from 0 to
 7. 3. Theimage decoding method of claim 1, wherein slices within one picturerefer to an identical APS for the scaling list data.
 4. The imagedecoding method of claim 1, wherein deriving the transform coefficientsincludes deriving the transform coefficients by performing adequantization process for the quantized transform coefficients based onthe scaling list data.
 5. The image decoding method of claim 1, whereinthe image information includes a sequence parameter set (SPS), whereinthe SPS includes first enabled flag information related to whether thescaling list data is used, and wherein the scaling list data included inthe APS is obtained based on the first enabled flag information.
 6. Theimage decoding method of claim 5, wherein the image information includesheader information, wherein the header information includes secondenabled flag information related to whether the scaling list data in apicture or a slice is used, and wherein the header information includesthe second enabled flag information based on the first enabled flaginformation included in the SPS.
 7. The image decoding method of claim6, wherein the header information includes the scaling list data-relatedAPS ID information, and wherein the header information includes thescaling list data-related APS ID information based on the second enabledflag information.
 8. The image decoding method of claim 7, wherein theAPS including the scaling list data is identified based on the scalinglist data-related APS ID information of the header information.
 9. Theimage decoding method of claim 1, wherein the image information includesa sequence parameter set (SPS) and a picture parameter set (PPS), andwherein first enabled flag information related to whether the scalinglist data is used is signaled in the SPS and is not signaled in the PPS.10. An image encoding method performed by an encoding apparatus,comprising: deriving residual samples for a current block; derivingtransform coefficients based on the residual samples; deriving quantizedtransform coefficients by applying a quantization process for thetransform coefficients; generating residual information includinginformation for the quantized transform coefficients; and encoding imageinformation including the residual information, wherein the imageinformation includes an adaptation parameter set (APS) including scalinglist data, wherein the APS includes APS ID information and APS typeinformation, wherein the APS is identified based on the APS IDinformation, wherein the APS includes the scaling list data based on theAPS type information, and wherein the APS ID information has a valuewithin a specific range based on the APS type information, and whereinthe APS type information specifies that the APS is APS for the scalinglist data.
 11. The image encoding method of claim 10, wherein a value ofthe APS ID information has a value within a specific range from 0 to 3or from 0 to
 7. 12. The image encoding method of claim 10, whereinslices within one picture refer to an identical APS for the scaling listdata.
 13. The image encoding method of claim 10, wherein the imageinformation includes a sequence parameter set (SPS), wherein the SPSincludes first enabled flag information related to whether the scalinglist data is used, and wherein the scaling list data included in the APSis obtained based on the first enabled flag information.
 14. The imageencoding method of claim 13, wherein the image information includesheader information, wherein the header information includes secondenabled flag information related to whether the scaling list data in apicture or a slice is used, and wherein the header information includesthe second enabled flag information based on the first enabled flaginformation included in the SPS.
 15. The image encoding method of claim14, wherein the header information includes the scaling listdata-related APS ID information, and wherein the header informationincludes the scaling list data-related APS ID information based on thesecond enabled flag information.
 16. The image encoding method of claim15, wherein the APS including the scaling list data is identified basedon the scaling list data-related APS ID information of the headerinformation.
 17. The image encoding method of claim 10, wherein theimage information includes a sequence parameter set (SPS) and a pictureparameter set (PPS), and wherein first enabled flag information relatedto whether the scaling list data is used is signaled in the SPS and isnot signaled in the PPS.
 18. A non-transitory computer-readable digitalstorage medium storing a bitstream generated by an image encodingmethod, the method comprising: deriving residual samples for a currentblock; deriving transform coefficients based on the residual samples;deriving quantized transform coefficients by applying a quantizationprocess for the transform coefficients; generating residual informationincluding information for the quantized transform coefficients; andencoding image information including the residual information togenerate the bitstream, wherein the image information includes anadaptation parameter set (APS) including scaling list data, wherein theAPS includes APS ID information and APS type information, wherein theAPS is identified based on the APS ID information, wherein the APSincludes the scaling list data based on the APS type information, andwherein the APS ID information has a value within a specific range basedon the APS type information, and wherein the APS type informationspecifies that the APS is APS for the scaling list data.
 19. Atransmission method of data for an image, the method comprising:obtaining a bitstream for the image, wherein the bitstream is generatedbased on deriving residual samples for a current block, derivingtransform coefficients based on the residual samples, deriving quantizedtransform coefficients by applying a quantization process for thetransform coefficients, generating residual information includinginformation for the quantized transform coefficients, encoding imageinformation including the residual information; and transmitting thedata comprising the bitstream, wherein the image information includes anadaptation parameter set (APS) including scaling list data, wherein theAPS includes APS ID information and APS type information, wherein theAPS is identified based on the APS ID information, wherein the APSincludes the scaling list data based on the APS type information, andwherein the APS ID information has a value within a specific range basedon the APS type information, and wherein the APS type informationspecifies that the APS is APS for the scaling list data.